@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.
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.Utilities
Task object
TheTask object passed to every agent’s run function provides access to platform services:
See Task object for the full API.