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.
Methods
Section titled “Methods”getState()?
Section titled “getState()?”
optionalgetState(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.
Parameters
Section titled “Parameters”config
Section titled “config”RunnableConfig
Returns
Section titled “Returns”Promise<any>
invoke()
Section titled “invoke()”invoke(
input,config?):Promise<{messages:BaseMessage<MessageStructure<MessageToolSet>,MessageType>[]; }>
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:194
Parameters
Section titled “Parameters”any
config?
Section titled “config?”RunnableConfig<Record<string, any>>
Returns
Section titled “Returns”Promise<{ messages: BaseMessage<MessageStructure<MessageToolSet>, MessageType>[]; }>
stream()
Section titled “stream()”stream(
input,config?):Promise<IterableReadableStream<any>>
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:196
Parameters
Section titled “Parameters”any
config?
Section titled “config?”any
Returns
Section titled “Returns”Promise<IterableReadableStream<any>>