Skip to main content

Type Aliases

AgentLanguageModel

Ƭ AgentLanguageModel: Object The part of an AI SDK LanguageModelV4 a run uses: one generation step with function tools.

Type declaration


AgentModels

Ƭ AgentModels: Object Where an agent’s runs get their model: the program’s language models, metered per run (new LanguageModels(component, catalog) from @bijectionhq/language-models).

Type declaration


AgentDefinition

Ƭ AgentDefinition: Object One agent: what it reads, what it may propose, and its model.

Type declaration


AgentDeclaration

Ƭ AgentDeclaration: Readonly<{ name: string ; description: string ; sessions: IssuedSessionPolicy ; tools: Toolset ; proposes: Readonly<Record<string, ToolDeclaration>> ; model: string ; instructions: string ; maxSteps: number }> A validated agent declaration.

AgentRun

Ƭ AgentRun: Object What one run is for.

Type declaration


AgentsModuleOptions

Ƭ AgentsModuleOptions: Object Configuration of the independent agent module.

Type declaration

Functions

startAgent

▸ startAgent(_ctx, agent, run): Promise<void> Start a run of the agent agent from a mutation; it starts once the mutation commits. The run carries what the mutation read, so a run whose starter read protected rows decides them for the sessions it starts.

Parameters

Returns

Promise<void>

defineAgent

▸ defineAgent(name, definition): AgentDeclaration Declare an agent the deployment runs. Throws on an inconsistent declaration.

Parameters

Returns

AgentDeclaration

agentsModule

▸ agentsModule(options): Record<string, unknown> & { isFunctionBundle: true } Install agents and their proposal review functions. An agent needs no MCP server, route, or HTTP origin.

Parameters

Returns

Record<string, unknown> & { isFunctionBundle: true }

agentTables

▸ agentTables(): Object The table of the operations agents’ runs propose, for an application that declares agents: spread it into the application schema. It is retained custody keyed by the object each run acted for, so a reader sees a proposal only while they may read what its run read, and removing it takes a custody migration.

Returns

Object