@agentapplicationprotocol/core 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -139,7 +139,7 @@ export interface AgentInfo {
139
139
  /** Response body for `GET /meta`. */
140
140
  export interface MetaResponse {
141
141
  /** AAP protocol version. */
142
- version: number;
142
+ version: 2;
143
143
  agents: AgentInfo[];
144
144
  }
145
145
  export type StreamMode = "delta" | "message" | "none";
@@ -183,24 +183,27 @@ export interface AgentResponse {
183
183
  export interface CreateSessionResponse extends AgentResponse {
184
184
  sessionId: string;
185
185
  }
186
- /** Response body for `GET /session/:id`. */
186
+ /** Response body for `GET /session/:id` and items in `GET /sessions`. */
187
187
  export interface SessionResponse {
188
188
  sessionId: string;
189
189
  /** Secret option values in `agent.options` are redacted (e.g. `"***"`). */
190
190
  agent: AgentConfig;
191
191
  /** Application-side tools declared for this session. */
192
192
  tools?: ToolSpec[];
193
- history?: {
194
- /** Omitted if the server chooses not to expose. Present when `?history=compacted` */
193
+ }
194
+ /** Response body for `GET /session/:id/history`. */
195
+ export interface SessionHistoryResponse {
196
+ history: {
197
+ /** Present when `?type=compacted` */
195
198
  compacted?: HistoryMessage[];
196
- /** Omitted if the server chooses not to expose. Present when `?history=full` */
199
+ /** Present when `?type=full` */
197
200
  full?: HistoryMessage[];
198
201
  };
199
202
  }
200
203
  /** Response body for `GET /sessions`. */
201
204
  export interface SessionListResponse {
202
- /** Array of session IDs. */
203
- sessions: string[];
205
+ /** Array of session objects. Each object has the same shape as `SessionResponse`. */
206
+ sessions: SessionResponse[];
204
207
  /** Pagination cursor; absent when there are no more results. Pass as `after` to get the next page. */
205
208
  next?: string;
206
209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentapplicationprotocol/core",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Core types and utilities for the Agent Application Protocol",
5
5
  "keywords": [
6
6
  "aap",