agentskit.js

AgentHandle

Auto-generated API reference for AgentHandle.

Interface: AgentHandle<TContext>

Defined in: topologies.ts:14

Ready-made multi-agent topologies. Each builder takes a set of AgentHandles + config and returns a single AgentHandle that presents the ensemble as a normal agent to the rest of the system.

An AgentHandle is intentionally minimal β€” name + run(task, context?) => Promise&lt;string> β€” so any runtime (our own createRuntime, a LangChain Runnable, a bare HTTP endpoint) can participate without coupling.

#Type Parameters

#TContext

TContext = unknown

#Properties

#name

name: string

Defined in: topologies.ts:15


#run

run: (task, context?) => Promise<string>

Defined in: topologies.ts:16

#Parameters

task

string

context?

TContext

#Returns

Promise<string>

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page