Skip to content

GthCompiledGraph

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:192

The minimal structural surface of a compiled LangGraph agent that the shared agent plumbing in GthAbstractAgent drives. createAgent (lean) returns a graph that satisfies this, so the base class can stream/invoke it without knowing which builder produced it. Inputs are intentionally loose (any) so concrete builder return types assign without casts; the base re-applies precise typing at the point of use via AIMessage/AIMessageChunk guards.

optional getState(config): Promise<any>

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:204

Read the checkpointed graph state for a thread. Present on LangGraph compiled graphs; used to detect a graph suspended on a human-in-the-loop interrupt() (its pending PendingToolInterrupt lives in state.tasks[].interrupts[].value). Optional because the structural surface predates it.

RunnableConfig

Promise<any>


invoke(input, config?): Promise<{ messages: BaseMessage<MessageStructure<MessageToolSet>, MessageType>[]; }>

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:194

any

RunnableConfig<Record<string, any>>

Promise<{ messages: BaseMessage<MessageStructure<MessageToolSet>, MessageType>[]; }>


stream(input, config?): Promise<IterableReadableStream<any>>

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:196

any

any

Promise<IterableReadableStream<any>>