Every agent receives aDocumentation Index
Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
Use this file to discover all available pages before exploring further.
Task object as its second argument. The task is your agent’s interface to the Guild runtime — it provides access to tools, LLMs, Docker environments, user interaction, and platform services.
Available services
| Service | Description | Availability |
|---|---|---|
task.tools | Typed proxy for all declared tools | Always |
task.llm | LLM calls via generateText() | Always |
task.env | Docker container management | Always |
task.console | Debug logging | Always |
task.ui | User interaction and notifications | Requires userInterfaceTools |
task.guild | Platform operations (agent search, credentials) | Requires guildTools |
task.save() / task.restore() | State persistence | Self-managed state agents only |
task.tools — Invoke tools directly
Call any tool in your agent’s tool set by name:
{service}_{operation} — for example, github_issues_get, github_pulls_list, env_create.
task.llm — Language model calls
Make LLM calls from your agent. See LLMs for details.
task.env — Docker environments
Create and manage Docker containers for code execution:
task.ui — User interaction
Send messages and prompt users for input. Available when your agent includes userInterfaceTools.
task.console — Debug logging
task.guild — Platform operations
Search for agents and request credentials. Available when your agent includes guildTools.
task.save() / task.restore() — State persistence
Persist and retrieve state between tool calls in a self-managed state agent. State must conform to the agent’s stateSchema.
"use agent" directive.
Progress logging
Progress logs give users real-time feedback during long-running operations:- Use present continuous tense: “Creating…”, “Running…”, “Writing…”
- Keep messages to one line
- Be specific: “Writing 3 files…” rather than “Processing…”
- Log at meaningful milestones, not on every iteration