Skip to content

StreamProcessorOptions

Defined in: agent/stream-processor.ts:52

Configuration for the StreamProcessor.

optional agentConfig: AgentContextConfig

Defined in: agent/stream-processor.ts:87

Parent agent configuration for subagents to inherit


optional baseDepth: number

Defined in: agent/stream-processor.ts:106

Base depth for nodes created by this processor


optional client: LLMist

Defined in: agent/stream-processor.ts:81

LLMist client for ExecutionContext.llmist


optional defaultGadgetTimeoutMs: number

Defined in: agent/stream-processor.ts:78

Default gadget timeout


optional gadgetArgPrefix: string

Defined in: agent/stream-processor.ts:66

Custom argument prefix for block format


optional gadgetEndPrefix: string

Defined in: agent/stream-processor.ts:63

Custom gadget end prefix


optional gadgetStartPrefix: string

Defined in: agent/stream-processor.ts:60

Custom gadget start prefix


optional hooks: AgentHooks

Defined in: agent/stream-processor.ts:69

Hooks for lifecycle events


iteration: number

Defined in: agent/stream-processor.ts:54

Current iteration number


optional logger: Logger<ILogObj>

Defined in: agent/stream-processor.ts:72

Logger instance


optional mediaStore: MediaStore

Defined in: agent/stream-processor.ts:84

MediaStore for storing gadget media outputs


optional onSubagentEvent: (event) => void

Defined in: agent/stream-processor.ts:93

Callback for subagent gadgets to report subagent events to parent

SubagentEvent

void


optional parentNodeId: string | null

Defined in: agent/stream-processor.ts:103

Parent node ID (for gadget nodes created by this processor)


optional priorCompletedInvocations: Set<string>

Defined in: agent/stream-processor.ts:116

Set of invocation IDs that completed in previous iterations. Used to resolve dependencies on gadgets from prior LLM responses.


optional priorFailedInvocations: Set<string>

Defined in: agent/stream-processor.ts:122

Set of invocation IDs that failed in previous iterations. Used to skip gadgets that depend on previously-failed gadgets.


registry: GadgetRegistry

Defined in: agent/stream-processor.ts:57

Gadget registry for execution


optional requestHumanInput: (question) => Promise<string>

Defined in: agent/stream-processor.ts:75

Callback for requesting human input during execution

string

Promise<string>


optional subagentConfig: SubagentConfigMap

Defined in: agent/stream-processor.ts:90

Subagent-specific configuration overrides


optional tree: ExecutionTree

Defined in: agent/stream-processor.ts:100

Execution tree for tracking LLM calls and gadget executions