Skip to content

craft-hub / AgentTaskProviderInput

Interface: AgentTaskProviderInput

Defined in: packages/craft-hub/src/agent-tasks.ts:26

Fully resolved input passed to an agent task adapter.

Extends

Properties

actionId?

optional actionId?: "improve-project-config"

Defined in: packages/craft-hub/src/agent-tasks.ts:13

Inherited from

StartAgentTaskInput.actionId


capabilityId?

optional capabilityId?: string

Defined in: packages/craft-hub/src/agent-tasks.ts:12

Inherited from

StartAgentTaskInput.capabilityId


onOutput

onOutput: (chunk) => Promise<void>

Defined in: packages/craft-hub/src/agent-tasks.ts:33

Persist one human-readable progress chunk for the local task UI.

Parameters

chunk

string

Returns

Promise<void>


onThread

onThread: (threadId) => Promise<void>

Defined in: packages/craft-hub/src/agent-tasks.ts:31

Parameters

threadId

string

Returns

Promise<void>


parentTaskId?

optional parentTaskId?: string

Defined in: packages/craft-hub/src/agent-tasks.ts:15

Inherited from

StartAgentTaskInput.parentTaskId


primaryProjectId

primaryProjectId: string

Defined in: packages/craft-hub/src/agent-tasks.ts:11

Inherited from

StartAgentTaskInput.primaryProjectId


primaryProjectPath

primaryProjectPath: string

Defined in: packages/craft-hub/src/agent-tasks.ts:29


projectIds

projectIds: string[]

Defined in: packages/craft-hub/src/agent-tasks.ts:10

Inherited from

StartAgentTaskInput.projectIds


projectPaths

projectPaths: string[]

Defined in: packages/craft-hub/src/agent-tasks.ts:28


prompt

prompt: string

Defined in: packages/craft-hub/src/agent-tasks.ts:9

Inherited from

StartAgentTaskInput.prompt


sandboxMode?

optional sandboxMode?: "read-only" | "workspace-write"

Defined in: packages/craft-hub/src/agent-tasks.ts:17

Least filesystem access the host adapter should grant to this task.

Inherited from

StartAgentTaskInput.sandboxMode


signal

signal: AbortSignal

Defined in: packages/craft-hub/src/agent-tasks.ts:30


taskId

taskId: string

Defined in: packages/craft-hub/src/agent-tasks.ts:27


workspaceId?

optional workspaceId?: string

Defined in: packages/craft-hub/src/agent-tasks.ts:14

Inherited from

StartAgentTaskInput.workspaceId

Released under the MIT License.