|
1 | 1 | # Template API |
2 | 2 |
|
3 | | -Implemented: list, retrieve, create, update, archive and clone. These six operations share the same request engine and credential handling in synchronous and asynchronous clients. |
| 3 | +Implemented: list, retrieve, create, update, archive, clone and authenticated Agent Card retrieval. These seven operations share the same request engine and credential handling in synchronous and asynchronous clients. |
4 | 4 |
|
5 | 5 | ## Methods |
6 | 6 |
|
@@ -53,7 +53,8 @@ Use values supported by the selected environment and model; the SDK does not inf |
53 | 53 | | `managed_tool_config` | `ManagedToolConfig` | |
54 | 54 | | `mcp_servers` | `List<MCPServer>` | |
55 | 55 | | `skills` | `List<SkillBinding>` | |
56 | | -| `multiagent` | `MultiagentConfig`, `MultiagentEntry` (including Advisor model) | |
| 56 | +| `multiagent` | `MultiagentConfig`, `MultiagentEntry` (string reference, Agent, Self or Advisor) | |
| 57 | +| `a2a` | `TemplateA2AConfig`, `TemplateA2ASkill` (Agent Card capabilities, not resource Skill bindings) | |
57 | 58 | | `vaults`, `files` | `Map<String, ResourceBinding>` | |
58 | 59 | | `github_repositories` | Request: `GitHubRepositoryConfig`; response: `GitHubRepository` | |
59 | 60 | | `environment_variables` | `EnvironmentVariables`: object or string | |
@@ -134,6 +135,22 @@ if (page.hasNextPage()) { |
134 | 135 |
|
135 | 136 | Forward pagination uses `last_id` as the next `after_id`; a request using `before_id` continues with `first_id`. These two request cursors are mutually exclusive, including request-option overrides. A false `has_more`, empty data or absent cursor ends iteration. Calling next on an exhausted page raises `PaginationException`, as does a repeated cursor that would cause a loop. Async consumers use explicit page futures; no whole-result buffering or async stream API is provided. |
136 | 137 |
|
| 138 | +## A2A publication and discovery |
| 139 | + |
| 140 | +```java |
| 141 | +TemplateA2AConfig a2a = TemplateA2AConfig.builder().enabled(true) |
| 142 | + .skills(Collections.singletonList(TemplateA2ASkill.builder() |
| 143 | + .id("summary").name("Summarize").description("Summarize supplied text") |
| 144 | + .build())).build(); |
| 145 | +client.templates().update("tmpl_example", TemplateUpdateParams.builder().a2a(a2a).build()); |
| 146 | +TemplateAgentCard card = client.templates().retrieveAgentCard("tmpl_example", |
| 147 | + TemplateAgentCardParams.builder().identityId("idn_example").a2aVersion("1.0").build()); |
| 148 | +``` |
| 149 | + |
| 150 | +A2A is separate from multiagent orchestration. Updating A2A patches supplied object fields; omitted fields and `{}` preserve configuration, `skills: []` clears capabilities, and `a2a: null` clears and disables publication. Members do not accept null. These skills describe Card capabilities, not mounted Qoder Skills. |
| 151 | + |
| 152 | +PAT callers select runtime `identityId`; identity-bound SAT callers omit it. Card retrieval uses the same authentication and request options as other APIs and sends `A2A-Version` as a header. Version 0.3 exposes `card.url()`, while 1.0 exposes `card.supportedInterfaces()`. Read the invocation URL from the Card and pass it to a compatible A2A client; this SDK does not follow that URL or replay A2A tasks. See the [official integration guide](https://docs.qoder.com/cloud-agents/a2a-integration.md). |
| 153 | + |
137 | 154 | ## Contract sources and validation boundary |
138 | 155 |
|
139 | 156 | Routes and baseline fields follow the pinned Go/Python/TypeScript SDK commits in [coverage](forward-api-coverage.md). Template parameters also expose `speed`, `max_tool_rounds` and Advisor configuration. Java exposes these fields without imposing new defaults. |
|
0 commit comments