Skip to main content
The @guildai/agents-sdk package provides types, utilities, tool sets, and platform service interfaces for building Guild agents. An agent takes typed input, does its work using tools, LLMs, or other agents, and returns typed output.

Agent types

Choosing an agent type

FeaturellmAgentAutomaticallyManagedStateAgentSelfManagedStateAgent
EaseEasyModerateChallenging
ControlStochasticDeterministicDeterministic
LLM costVariableFixedFixed
Best forTasks expressible as a prompt + toolsAlgorithmic workflowsParallel tool calls, complex state

Agent schema

Every agent must declare:
  • description — Used by humans and LLMs to determine when to invoke the agent.
  • inputSchema — A Zod schema describing the agent’s input.
  • outputSchema — A Zod schema describing the agent’s output.
  • tools — (optional) Tools the agent may use.
The runtime only supports @guildai/agents-sdk and zod. You cannot import external npm packages or Node.js built-in modules — agents run in a sandboxed environment.

Next steps