@agentapplicationprotocol/core 0.5.0 → 0.6.1
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.
- package/dist/src/types.d.ts +10 -7
- package/package.json +1 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -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:
|
|
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
|
-
|
|
194
|
-
|
|
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
|
-
/**
|
|
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
|
|
203
|
-
sessions:
|
|
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
|
}
|