Skip to main content
@guildai/agents-sdk is the TypeScript package that provides everything you need to build a Guild agent: agent constructors, tool sets, service interfaces, and platform utilities.
Ground truth for every export is the @guildai/agents-sdk package. See the Agent SDK introduction for full documentation.
The SDK is available only inside Guild’s agent runtime. You may not import external npm packages or Node.js built-in modules in agent code — only @guildai/agents-sdk, zod, and @guildai-services/* packages are supported.

Agent constructors

See LLM agents and Coded agents for usage.

Tool sets

Third-party service tools (for example gitHubTools) live in separate @guildai-services/* packages and are not re-exported from @guildai/agents-sdk. Import them alongside it.
See Tool sets for details on each tool set.

Utilities

Task object

The Task object passed to every agent’s run function provides access to platform services: See Task object for the full API.