@osdk/foundry.aipagents 2.2.0 → 2.3.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/build/browser/_components.d.ts +216 -0
  3. package/build/browser/_components.d.ts.map +1 -1
  4. package/build/browser/_errors.d.ts +198 -0
  5. package/build/browser/_errors.d.ts.map +1 -1
  6. package/build/browser/index.d.ts +4 -2
  7. package/build/browser/index.d.ts.map +1 -1
  8. package/build/browser/index.js +2 -0
  9. package/build/browser/index.js.map +1 -1
  10. package/build/browser/public/Agent.d.ts +17 -0
  11. package/build/browser/public/Agent.d.ts.map +1 -1
  12. package/build/browser/public/Agent.js +14 -0
  13. package/build/browser/public/Agent.js.map +1 -1
  14. package/build/browser/public/Content.d.ts +20 -0
  15. package/build/browser/public/Content.d.ts.map +1 -0
  16. package/build/browser/public/Content.js +30 -0
  17. package/build/browser/public/Content.js.map +1 -0
  18. package/build/browser/public/Session.d.ts +139 -0
  19. package/build/browser/public/Session.d.ts.map +1 -0
  20. package/build/browser/public/Session.js +126 -0
  21. package/build/browser/public/Session.js.map +1 -0
  22. package/build/esm/_components.d.ts +216 -0
  23. package/build/esm/_components.d.ts.map +1 -1
  24. package/build/esm/_errors.d.ts +198 -0
  25. package/build/esm/_errors.d.ts.map +1 -1
  26. package/build/esm/index.d.ts +4 -2
  27. package/build/esm/index.d.ts.map +1 -1
  28. package/build/esm/index.js +2 -0
  29. package/build/esm/index.js.map +1 -1
  30. package/build/esm/public/Agent.d.ts +17 -0
  31. package/build/esm/public/Agent.d.ts.map +1 -1
  32. package/build/esm/public/Agent.js +14 -0
  33. package/build/esm/public/Agent.js.map +1 -1
  34. package/build/esm/public/Content.d.ts +20 -0
  35. package/build/esm/public/Content.d.ts.map +1 -0
  36. package/build/esm/public/Content.js +30 -0
  37. package/build/esm/public/Content.js.map +1 -0
  38. package/build/esm/public/Session.d.ts +139 -0
  39. package/build/esm/public/Session.d.ts.map +1 -0
  40. package/build/esm/public/Session.js +126 -0
  41. package/build/esm/public/Session.js.map +1 -0
  42. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @osdk/foundry.aipagents
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c53ab4b: Updates platform APIs with newly introduced APIs, for example, interface loading APIs.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [c53ab4b]
12
+ - @osdk/foundry.core@2.3.0
13
+
3
14
  ## 2.2.0
4
15
 
5
16
  ### Minor Changes
@@ -11,6 +11,12 @@ export interface Agent {
11
11
  metadata: AgentMetadata;
12
12
  parameters: Record<ParameterId, Parameter>;
13
13
  }
14
+ /**
15
+ * The final answer for an exchange. Responses are formatted using markdown.
16
+ *
17
+ * Log Safety: UNSAFE
18
+ */
19
+ export type AgentMarkdownResponse = LooselyBrandedString<"AgentMarkdownResponse">;
14
20
  /**
15
21
  * Metadata for an Agent.
16
22
  *
@@ -28,6 +34,15 @@ export interface AgentMetadata {
28
34
  * Log Safety: SAFE
29
35
  */
30
36
  export type AgentRid = LooselyBrandedString<"AgentRid">;
37
+ /**
38
+ * Context retrieved from an Agent's configured context data sources which was relevant to the
39
+ supplied user message.
40
+ *
41
+ * Log Safety: SAFE
42
+ */
43
+ export interface AgentSessionRagContextResponse {
44
+ objectContexts: Array<ObjectContext>;
45
+ }
31
46
  /**
32
47
  * Log Safety: SAFE
33
48
  */
@@ -50,6 +65,58 @@ export interface AgentVersionDetails {
50
65
  * Log Safety: SAFE
51
66
  */
52
67
  export type AgentVersionString = LooselyBrandedString<"AgentVersionString">;
68
+ /**
69
+ * A page of results for sessions across all accessible Agents for the calling user.
70
+ Sessions are returned in order of most recently updated first.
71
+ *
72
+ * Log Safety: UNSAFE
73
+ */
74
+ export interface AgentsSessionsPage {
75
+ nextPageToken?: PageToken;
76
+ data: Array<Session>;
77
+ }
78
+ /**
79
+ * Log Safety: UNSAFE
80
+ */
81
+ export interface BlockingContinueSessionRequest {
82
+ userInput: UserTextInput;
83
+ parameterInputs: Record<ParameterId, ParameterValue>;
84
+ contextsOverride?: Array<InputContext>;
85
+ }
86
+ /**
87
+ * Log Safety: UNSAFE
88
+ */
89
+ export interface CancelSessionRequest {
90
+ messageId: MessageId;
91
+ response?: AgentMarkdownResponse;
92
+ }
93
+ /**
94
+ * Log Safety: UNSAFE
95
+ */
96
+ export interface CancelSessionResponse {
97
+ result?: SessionExchangeResult;
98
+ }
99
+ /**
100
+ * Log Safety: UNSAFE
101
+ */
102
+ export interface Content {
103
+ exchanges: Array<SessionExchange>;
104
+ }
105
+ /**
106
+ * Log Safety: SAFE
107
+ */
108
+ export interface CreateSessionRequest {
109
+ agentVersion?: AgentVersionString;
110
+ }
111
+ /**
112
+ * Custom retrieved context to provide
113
+ to an Agent for continuing a session.
114
+ *
115
+ * Log Safety: UNSAFE
116
+ */
117
+ export type InputContext = {
118
+ type: "objectContext";
119
+ } & ObjectContext;
53
120
  /**
54
121
  * Log Safety: UNSAFE
55
122
  */
@@ -57,12 +124,54 @@ export interface ListAgentVersionsResponse {
57
124
  data: Array<AgentVersion>;
58
125
  nextPageToken?: _Core.PageToken;
59
126
  }
127
+ /**
128
+ * Log Safety: UNSAFE
129
+ */
130
+ export interface ListSessionsResponse {
131
+ data: Array<Session>;
132
+ nextPageToken?: _Core.PageToken;
133
+ }
134
+ /**
135
+ * An ephemeral client-generated Universally Unique Identifier (UUID) to identify a message for streamed session responses.
136
+ This can be used by clients to cancel a streamed exchange.
137
+ *
138
+ * Log Safety: SAFE
139
+ */
140
+ export type MessageId = string;
141
+ /**
142
+ * Details of relevant retrieved object instances for a user's message to include as
143
+ additional context in the prompt to the Agent.
144
+ *
145
+ * Log Safety: SAFE
146
+ */
147
+ export interface ObjectContext {
148
+ objectRids: Array<_Core.ObjectRid>;
149
+ propertyTypeRids: Array<_Core.PropertyTypeRid>;
150
+ }
60
151
  /**
61
152
  * Log Safety: UNSAFE
62
153
  */
63
154
  export interface ObjectSetParameter {
64
155
  expectedObjectTypes: Array<_Core.ObjectTypeId>;
65
156
  }
157
+ /**
158
+ * Log Safety: SAFE
159
+ */
160
+ export interface ObjectSetParameterValueUpdate {
161
+ value: _Core.ObjectSetRid;
162
+ }
163
+ /**
164
+ * The maximum number of results to return in a single page.
165
+ *
166
+ * Log Safety: SAFE
167
+ */
168
+ export type PageSize = number;
169
+ /**
170
+ * The token to use to retrieve a page of results from.
171
+ *
172
+ * Log Safety: SAFE
173
+ */
174
+ export type PageToken = LooselyBrandedString<"PageToken">;
66
175
  /**
67
176
  * A parameter configured for an Agent in AIP Agent Studio.
68
177
  *
@@ -94,10 +203,117 @@ export type ParameterType = ({
94
203
  } & StringParameter) | ({
95
204
  type: "objectSet";
96
205
  } & ObjectSetParameter);
206
+ /**
207
+ * The value provided for a parameter
208
+ configured on an Agent.
209
+ *
210
+ * Log Safety: UNSAFE
211
+ */
212
+ export type ParameterValue = {
213
+ type: "string";
214
+ } & StringParameterValue;
215
+ /**
216
+ * A value update for a parameter which was
217
+ generated by the Agent. For StringParameter parameter types, this will be the updated string value. For
218
+ ObjectSetParameter parameter types, this will be a Resource Identifier (RID) for the updated object set.
219
+ *
220
+ * Log Safety: UNSAFE
221
+ */
222
+ export type ParameterValueUpdate = ({
223
+ type: "string";
224
+ } & StringParameterValue) | ({
225
+ type: "objectSet";
226
+ } & ObjectSetParameterValueUpdate);
227
+ /**
228
+ * Log Safety: UNSAFE
229
+ */
230
+ export interface RagContextSessionRequest {
231
+ userInput: UserTextInput;
232
+ parameterInputs: Record<ParameterId, ParameterValue>;
233
+ }
234
+ /**
235
+ * Log Safety: UNSAFE
236
+ */
237
+ export interface Session {
238
+ rid: SessionRid;
239
+ metadata: SessionMetadata;
240
+ agentRid: AgentRid;
241
+ agentVersion: AgentVersionString;
242
+ }
243
+ /**
244
+ * Represents an individual exchange between a user and an Agent in a conversation session.
245
+ *
246
+ * Log Safety: UNSAFE
247
+ */
248
+ export interface SessionExchange {
249
+ userInput: UserTextInput;
250
+ contexts?: SessionExchangeContexts;
251
+ result: SessionExchangeResult;
252
+ }
253
+ /**
254
+ * Retrieved context which was passed to the Agent as input for the exchange.
255
+ *
256
+ * Log Safety: SAFE
257
+ */
258
+ export interface SessionExchangeContexts {
259
+ objectContexts: Array<ObjectContext>;
260
+ }
261
+ /**
262
+ * The returned result from the Agent for a session exchange.
263
+ *
264
+ * Log Safety: UNSAFE
265
+ */
266
+ export interface SessionExchangeResult {
267
+ agentMarkdownResponse: AgentMarkdownResponse;
268
+ parameterUpdates: Record<ParameterId, ParameterValueUpdate>;
269
+ totalTokensUsed?: number;
270
+ interruptedOutput: boolean;
271
+ }
272
+ /**
273
+ * Metadata for a conversation session with an Agent.
274
+ *
275
+ * Log Safety: UNSAFE
276
+ */
277
+ export interface SessionMetadata {
278
+ title: string;
279
+ createdTime: string;
280
+ updatedTime: string;
281
+ messageCount: number;
282
+ estimatedExpiresTime: string;
283
+ }
284
+ /**
285
+ * The Resource Identifier (RID) of the conversation session.
286
+ *
287
+ * Log Safety: SAFE
288
+ */
289
+ export type SessionRid = LooselyBrandedString<"SessionRid">;
290
+ /**
291
+ * Log Safety: UNSAFE
292
+ */
293
+ export interface StreamingContinueSessionRequest {
294
+ userInput: UserTextInput;
295
+ parameterInputs: Record<ParameterId, ParameterValue>;
296
+ contextsOverride?: Array<InputContext>;
297
+ messageId?: MessageId;
298
+ }
97
299
  /**
98
300
  * Log Safety: UNSAFE
99
301
  */
100
302
  export interface StringParameter {
101
303
  defaultValue?: string;
102
304
  }
305
+ /**
306
+ * A value passed for StringParameter parameter types.
307
+ *
308
+ * Log Safety: UNSAFE
309
+ */
310
+ export interface StringParameterValue {
311
+ value: string;
312
+ }
313
+ /**
314
+ * Log Safety: UNSAFE
315
+ */
316
+ export interface UserTextInput {
317
+ text: string;
318
+ }
103
319
  //# sourceMappingURL=_components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"_components.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;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,SAAS,EAAE,aAAa,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IACrD,gBAAgB,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,6 +1,24 @@
1
1
  export type LooselyBrandedString<T extends string> = string & {
2
2
  __LOOSE_BRAND?: T;
3
3
  };
4
+ /**
5
+ * The Agent was unable to produce an answer in the set number of maximum iterations.
6
+ This can happen if the Agent gets confused or stuck in a loop, or if the query is too complex.
7
+ Try a different query or review the Agent configuration in AIP Agent Studio.
8
+
9
+ *
10
+ * Log Safety: UNSAFE
11
+ */
12
+ export interface AgentIterationsExceededLimit {
13
+ errorCode: "INVALID_ARGUMENT";
14
+ errorName: "AgentIterationsExceededLimit";
15
+ errorInstanceId: string;
16
+ parameters: {
17
+ agentRid: unknown;
18
+ sessionRid: unknown;
19
+ details: unknown;
20
+ };
21
+ }
4
22
  /**
5
23
  * The given Agent could not be found.
6
24
  *
@@ -28,6 +46,127 @@ export interface AgentVersionNotFound {
28
46
  agentVersionString: unknown;
29
47
  };
30
48
  }
49
+ /**
50
+ * Could not allSessions the Agent.
51
+ *
52
+ * Log Safety: SAFE
53
+ */
54
+ export interface AllSessionsAgentsPermissionDenied {
55
+ errorCode: "PERMISSION_DENIED";
56
+ errorName: "AllSessionsAgentsPermissionDenied";
57
+ errorInstanceId: string;
58
+ parameters: {};
59
+ }
60
+ /**
61
+ * Could not blockingContinue the Session.
62
+ *
63
+ * Log Safety: SAFE
64
+ */
65
+ export interface BlockingContinueSessionPermissionDenied {
66
+ errorCode: "PERMISSION_DENIED";
67
+ errorName: "BlockingContinueSessionPermissionDenied";
68
+ errorInstanceId: string;
69
+ parameters: {
70
+ agentRid: unknown;
71
+ sessionRid: unknown;
72
+ };
73
+ }
74
+ /**
75
+ * Unable to cancel the requested session exchange as no in-progress exchange was found
76
+ for the provided message identifier.
77
+ This is expected if no exchange was initiated with the provided message identifier
78
+ through a `streamingContinue` request, or if the exchange for this identifier has already completed
79
+ and cannot be canceled, or if the exchange has already been canceled.
80
+ This error can also occur if the cancellation was requested immediately after requesting the exchange
81
+ through a `streamingContinue` request, and the exchange has not started yet.
82
+ Clients should handle these errors gracefully, and can reload the session content to get the latest
83
+ conversation state.
84
+
85
+ *
86
+ * Log Safety: SAFE
87
+ */
88
+ export interface CancelSessionFailedMessageNotInProgress {
89
+ errorCode: "INVALID_ARGUMENT";
90
+ errorName: "CancelSessionFailedMessageNotInProgress";
91
+ errorInstanceId: string;
92
+ parameters: {
93
+ messageId: unknown;
94
+ agentRid: unknown;
95
+ sessionRid: unknown;
96
+ };
97
+ }
98
+ /**
99
+ * Could not cancel the Session.
100
+ *
101
+ * Log Safety: SAFE
102
+ */
103
+ export interface CancelSessionPermissionDenied {
104
+ errorCode: "PERMISSION_DENIED";
105
+ errorName: "CancelSessionPermissionDenied";
106
+ errorInstanceId: string;
107
+ parameters: {
108
+ agentRid: unknown;
109
+ sessionRid: unknown;
110
+ };
111
+ }
112
+ /**
113
+ * The given Content could not be found.
114
+ *
115
+ * Log Safety: SAFE
116
+ */
117
+ export interface ContentNotFound {
118
+ errorCode: "NOT_FOUND";
119
+ errorName: "ContentNotFound";
120
+ errorInstanceId: string;
121
+ parameters: {
122
+ agentRid: unknown;
123
+ sessionRid: unknown;
124
+ };
125
+ }
126
+ /**
127
+ * Failed to generate a response for a session because the context size of the LLM has been
128
+ exceeded. Clients should either retry with a shorter message or create a new session
129
+ and try re-sending the message.
130
+
131
+ *
132
+ * Log Safety: UNSAFE
133
+ */
134
+ export interface ContextSizeExceededLimit {
135
+ errorCode: "INVALID_ARGUMENT";
136
+ errorName: "ContextSizeExceededLimit";
137
+ errorInstanceId: string;
138
+ parameters: {
139
+ agentRid: unknown;
140
+ sessionRid: unknown;
141
+ details: unknown;
142
+ };
143
+ }
144
+ /**
145
+ * Could not create the Session.
146
+ *
147
+ * Log Safety: SAFE
148
+ */
149
+ export interface CreateSessionPermissionDenied {
150
+ errorCode: "PERMISSION_DENIED";
151
+ errorName: "CreateSessionPermissionDenied";
152
+ errorInstanceId: string;
153
+ parameters: {
154
+ agentRid: unknown;
155
+ };
156
+ }
157
+ /**
158
+ * The calling user does not have permission to list all sessions across all Agents.
159
+ Listing all sessions across all agents requires the `api:aip-agents-write` scope.
160
+
161
+ *
162
+ * Log Safety: SAFE
163
+ */
164
+ export interface GetAllSessionsAgentsPermissionDenied {
165
+ errorCode: "PERMISSION_DENIED";
166
+ errorName: "GetAllSessionsAgentsPermissionDenied";
167
+ errorInstanceId: string;
168
+ parameters: {};
169
+ }
31
170
  /**
32
171
  * The provided version string is not a valid format for an Agent version.
33
172
 
@@ -57,4 +196,63 @@ export interface NoPublishedAgentVersion {
57
196
  agentRid: unknown;
58
197
  };
59
198
  }
199
+ /**
200
+ * Could not ragContext the Session.
201
+ *
202
+ * Log Safety: SAFE
203
+ */
204
+ export interface RagContextSessionPermissionDenied {
205
+ errorCode: "PERMISSION_DENIED";
206
+ errorName: "RagContextSessionPermissionDenied";
207
+ errorInstanceId: string;
208
+ parameters: {
209
+ agentRid: unknown;
210
+ sessionRid: unknown;
211
+ };
212
+ }
213
+ /**
214
+ * Failed to generate a response for a session due to an unexpected error.
215
+
216
+ *
217
+ * Log Safety: UNSAFE
218
+ */
219
+ export interface SessionExecutionFailed {
220
+ errorCode: "INTERNAL";
221
+ errorName: "SessionExecutionFailed";
222
+ errorInstanceId: string;
223
+ parameters: {
224
+ agentRid: unknown;
225
+ sessionRid: unknown;
226
+ message: unknown;
227
+ details: unknown;
228
+ };
229
+ }
230
+ /**
231
+ * The given Session could not be found.
232
+ *
233
+ * Log Safety: SAFE
234
+ */
235
+ export interface SessionNotFound {
236
+ errorCode: "NOT_FOUND";
237
+ errorName: "SessionNotFound";
238
+ errorInstanceId: string;
239
+ parameters: {
240
+ agentRid: unknown;
241
+ sessionRid: unknown;
242
+ };
243
+ }
244
+ /**
245
+ * Could not streamingContinue the Session.
246
+ *
247
+ * Log Safety: SAFE
248
+ */
249
+ export interface StreamingContinueSessionPermissionDenied {
250
+ errorCode: "PERMISSION_DENIED";
251
+ errorName: "StreamingContinueSessionPermissionDenied";
252
+ errorInstanceId: string;
253
+ parameters: {
254
+ agentRid: unknown;
255
+ sessionRid: unknown;
256
+ };
257
+ }
60
258
  //# sourceMappingURL=_errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,eAAe,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS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C;KACnB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,mCAAmC,CAAC;IAC/C,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED;;;;;KAKK;AACL,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,wBAAwB,CAAC;IACpC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,UAAU,EAAE,OAAO,CAAC;QACpB,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,wCAAwC;IACvD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,0CAA0C,CAAC;IACtD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH"}
@@ -1,5 +1,7 @@
1
- export type { Agent, AgentMetadata, AgentRid, AgentVersion, AgentVersionDetails, AgentVersionString, ListAgentVersionsResponse, ObjectSetParameter, Parameter, ParameterAccessMode, ParameterId, ParameterType, StringParameter, } from "./_components.js";
2
- export type { AgentNotFound, AgentVersionNotFound, InvalidAgentVersion, NoPublishedAgentVersion, } from "./_errors.js";
1
+ export type { Agent, AgentMarkdownResponse, AgentMetadata, AgentRid, AgentSessionRagContextResponse, AgentsSessionsPage, AgentVersion, AgentVersionDetails, AgentVersionString, BlockingContinueSessionRequest, CancelSessionRequest, CancelSessionResponse, Content, CreateSessionRequest, InputContext, ListAgentVersionsResponse, ListSessionsResponse, MessageId, ObjectContext, ObjectSetParameter, ObjectSetParameterValueUpdate, PageSize, PageToken, Parameter, ParameterAccessMode, ParameterId, ParameterType, ParameterValue, ParameterValueUpdate, RagContextSessionRequest, Session, SessionExchange, SessionExchangeContexts, SessionExchangeResult, SessionMetadata, SessionRid, StreamingContinueSessionRequest, StringParameter, StringParameterValue, UserTextInput, } from "./_components.js";
2
+ export type { AgentIterationsExceededLimit, AgentNotFound, AgentVersionNotFound, AllSessionsAgentsPermissionDenied, BlockingContinueSessionPermissionDenied, CancelSessionFailedMessageNotInProgress, CancelSessionPermissionDenied, ContentNotFound, ContextSizeExceededLimit, CreateSessionPermissionDenied, GetAllSessionsAgentsPermissionDenied, InvalidAgentVersion, NoPublishedAgentVersion, RagContextSessionPermissionDenied, SessionExecutionFailed, SessionNotFound, StreamingContinueSessionPermissionDenied, } from "./_errors.js";
3
3
  export * as Agents from "./public/Agent.js";
4
4
  export * as AgentVersions from "./public/AgentVersion.js";
5
+ export * as Contents from "./public/Content.js";
6
+ export * as Sessions from "./public/Session.js";
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,KAAK,EACL,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,KAAK,EACL,qBAAqB,EACrB,aAAa,EACb,QAAQ,EACR,8BAA8B,EAC9B,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,8BAA8B,EAC9B,oBAAoB,EACpB,qBAAqB,EACrB,OAAO,EACP,oBAAoB,EACpB,YAAY,EACZ,yBAAyB,EACzB,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,kBAAkB,EAClB,6BAA6B,EAC7B,QAAQ,EACR,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,wBAAwB,EACxB,OAAO,EACP,eAAe,EACf,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,UAAU,EACV,+BAA+B,EAC/B,eAAe,EACf,oBAAoB,EACpB,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,4BAA4B,EAC5B,aAAa,EACb,oBAAoB,EACpB,iCAAiC,EACjC,uCAAuC,EACvC,uCAAuC,EACvC,6BAA6B,EAC7B,eAAe,EACf,wBAAwB,EACxB,6BAA6B,EAC7B,oCAAoC,EACpC,mBAAmB,EACnB,uBAAuB,EACvB,iCAAiC,EACjC,sBAAsB,EACtB,eAAe,EACf,wCAAwC,GACzC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC"}
@@ -15,4 +15,6 @@
15
15
  */
16
16
  export * as Agents from "./public/Agent.js";
17
17
  export * as AgentVersions from "./public/AgentVersion.js";
18
+ export * as Contents from "./public/Content.js";
19
+ export * as Sessions from "./public/Session.js";
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Agents","AgentVersions"],"sources":["index.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport * as Agents from \"./public/Agent.js\";\nexport * as AgentVersions from \"./public/AgentVersion.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,MAAM,MAAM,mBAAmB;AAC3C,OAAO,KAAKC,aAAa,MAAM,0BAA0B","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["Agents","AgentVersions","Contents","Sessions"],"sources":["index.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport * as Agents from \"./public/Agent.js\";\nexport * as AgentVersions from \"./public/AgentVersion.js\";\nexport * as Contents from \"./public/Content.js\";\nexport * as Sessions from \"./public/Session.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,MAAM,MAAM,mBAAmB;AAC3C,OAAO,KAAKC,aAAa,MAAM,0BAA0B;AACzD,OAAO,KAAKC,QAAQ,MAAM,qBAAqB;AAC/C,OAAO,KAAKC,QAAQ,MAAM,qBAAqB","ignoreList":[]}
@@ -17,4 +17,21 @@ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldCl
17
17
  preview?: _Core.PreviewMode | undefined;
18
18
  }
19
19
  ]): Promise<_AipAgents.Agent>;
20
+ /**
21
+ * List all conversation sessions between the calling user across all accessible Agents that were created
22
+ * by this client.
23
+ * Sessions are returned in order of most recently updated first.
24
+ *
25
+ * @alpha
26
+ *
27
+ * Required Scopes: [api:aip-agents-write]
28
+ * URL: /v2/aipAgents/agents/allSessions
29
+ */
30
+ export declare function allSessions($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
31
+ $queryParams?: {
32
+ pageSize?: _AipAgents.PageSize | undefined;
33
+ pageToken?: _AipAgents.PageToken | undefined;
34
+ preview?: _Core.PreviewMode | undefined;
35
+ }
36
+ ]): Promise<_AipAgents.AgentsSessionsPage>;
20
37
  //# sourceMappingURL=Agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Agent.d.ts","sourceRoot":"","sources":["../../../src/public/Agent.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAcrD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAA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,UAAU,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC3C,SAAS,CAAC,EAAE,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC;QAC7C,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAExC"}
@@ -27,4 +27,18 @@ const _get = [0, "/v2/aipAgents/agents/{0}", 2];
27
27
  export function get($ctx, ...args) {
28
28
  return $foundryPlatformFetch($ctx, _get, ...args);
29
29
  }
30
+ const _allSessions = [0, "/v2/aipAgents/agents/allSessions", 2];
31
+ /**
32
+ * List all conversation sessions between the calling user across all accessible Agents that were created
33
+ * by this client.
34
+ * Sessions are returned in order of most recently updated first.
35
+ *
36
+ * @alpha
37
+ *
38
+ * Required Scopes: [api:aip-agents-write]
39
+ * URL: /v2/aipAgents/agents/allSessions
40
+ */
41
+ export function allSessions($ctx, ...args) {
42
+ return $foundryPlatformFetch($ctx, _allSessions, ...args);
43
+ }
30
44
  //# sourceMappingURL=Agent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Agent.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args"],"sources":["Agent.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _get = [0, \"/v2/aipAgents/agents/{0}\", 2];\n/**\n * Get details for an AIP Agent.\n *\n * @alpha\n *\n * Required Scopes: [api:aip-agents-read]\n * URL: /v2/aipAgents/agents/{agentRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,0BAA0B,EAAE,CAAC,CAAC;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,IAAI,EAAE,GAAGG,IAAI,CAAC;AACrD","ignoreList":[]}
1
+ {"version":3,"file":"Agent.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args","_allSessions","allSessions"],"sources":["Agent.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _get = [0, \"/v2/aipAgents/agents/{0}\", 2];\n/**\n * Get details for an AIP Agent.\n *\n * @alpha\n *\n * Required Scopes: [api:aip-agents-read]\n * URL: /v2/aipAgents/agents/{agentRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _allSessions = [0, \"/v2/aipAgents/agents/allSessions\", 2];\n/**\n * List all conversation sessions between the calling user across all accessible Agents that were created\n * by this client.\n * Sessions are returned in order of most recently updated first.\n *\n * @alpha\n *\n * Required Scopes: [api:aip-agents-write]\n * URL: /v2/aipAgents/agents/allSessions\n */\nexport function allSessions($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _allSessions, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,0BAA0B,EAAE,CAAC,CAAC;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,IAAI,EAAE,GAAGG,IAAI,CAAC;AACrD;AACA,MAAMC,YAAY,GAAG,CAAC,CAAC,EAAE,kCAAkC,EAAE,CAAC,CAAC;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACvC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,YAAY,EAAE,GAAGD,IAAI,CAAC;AAC7D","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
3
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
4
+ import type * as _AipAgents from "../_components.js";
5
+ /**
6
+ * Get the conversation content for a session between the calling user and an Agent.
7
+ *
8
+ * @alpha
9
+ *
10
+ * Required Scopes: [api:aip-agents-read]
11
+ * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/content
12
+ */
13
+ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
14
+ agentRid: _AipAgents.AgentRid,
15
+ sessionRid: _AipAgents.SessionRid,
16
+ $queryParams?: {
17
+ preview?: _Core.PreviewMode | undefined;
18
+ }
19
+ ]): Promise<_AipAgents.Content>;
20
+ //# sourceMappingURL=Content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../src/public/Content.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAYrD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,UAAU,CAAC,QAAQ;IAC7B,UAAU,EAAE,UAAU,CAAC,UAAU;IAEjC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAE7B"}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _get = [0, "/v2/aipAgents/agents/{0}/sessions/{1}/content", 2];
19
+ /**
20
+ * Get the conversation content for a session between the calling user and an Agent.
21
+ *
22
+ * @alpha
23
+ *
24
+ * Required Scopes: [api:aip-agents-read]
25
+ * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/content
26
+ */
27
+ export function get($ctx, ...args) {
28
+ return $foundryPlatformFetch($ctx, _get, ...args);
29
+ }
30
+ //# sourceMappingURL=Content.js.map