Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs-site/content/kagent/main/examples/a2a-agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ Setting `contextId` lists the tasks of that one Session. Leaving it out lists th

3. Read the response. It holds the page of `tasks`, the `pageSize` that applied, and `totalSize`, which counts every task that matches the filters across all pages. The `nextPageToken` value is empty on the last page, so a caller keeps requesting pages until `nextPageToken` comes back empty. To read the artifacts of a task that a list returned, set `includeArtifacts` or call `GetTask` with the task's `id`.

When the tasks are large, a response can contain fewer tasks than `pageSize`. Each `ListTasks` page stays below 12 MiB before gRPC framing. When the next task would make the page too large, the page ends, and the response includes `nextPageToken`. If one task is larger than the limit, the page contains only that task.

## Read token usage {#read-token-usage}

The `kagent` harness reports the model tokens that a task uses through the optional usage extension, `https://kagent.dev/extensions/usage/v1`. The agent card of an Agent on this harness advertises the extension. A `byo` image that is built with the Go or Python helper also reports usage, but the agent card does not advertise the extension. The `codex` and `claude` harnesses do not report usage.
Expand Down
4 changes: 4 additions & 0 deletions docs-site/content/kagent/main/skills-and-mcp/about-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ The following fields control which namespaces can bind the server.

For the bundled `kagent-tool-server`, see [Reach kagent-tool-server from another namespace]({{< link path="reference/tools-ecosystem#reach-kagent-tool-server-from-another-namespace" >}}).

### Images in tool results {#images-in-tool-results}

On the kagent harness, the chat in the kagent UI shows the images that a successful MCP tool result returns, inline with the tool result. PNG, JPEG, GIF, and WebP images render, up to 2 MiB each, encoded as base64. Images of other types, images from a failed tool result, and images over a size limit appear in the text result as placeholders.

## Subagents as tools

A `subAgent` binding references another AgentTemplate in the same namespace so that one agent can route work to another agent. The model reads the `description` when it decides whether to route work here. A description that states plainly what the bound agent is for therefore matters more than the detail of its configuration.
Expand Down
Loading