@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
@@ -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,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,sBAAsB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,kBAAkB,EAAE,OAAO,CAAC;KAC7B,CAAC;CACH;AAED;;;;;KAKK;AACL,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,qBAAqB,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED;;;;;KAKK;AACL,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,yBAAyB,CAAC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH"}
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AS,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,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,UAAU,CAAC,QAAQ;IAE7B,YAAY,CAAC,EAAE;QACb,OAAO,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,SAAS,CAAC;QACpD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAE3B"}
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,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,UAAU,CAAC,QAAQ;IAE7B,YAAY,CAAC,EAAE;QACb,OAAO,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,SAAS,CAAC;QACpD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAE3B;AAUD;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Content.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args"],"sources":["Content.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}/sessions/{1}/content\", 2];\n/**\n * Get the conversation content for a session between the calling user and an Agent.\n *\n * @alpha\n *\n * Required Scopes: [api:aip-agents-read]\n * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/content\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,+CAA+C,EAAE,CAAC,CAAC;AACpE;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":[]}
@@ -0,0 +1,139 @@
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
+ * Create a new conversation session between the calling user and an Agent.
7
+ * Use `blockingContinue` or `streamingContinue` to start adding exchanges to the session.
8
+ *
9
+ * @alpha
10
+ *
11
+ * Required Scopes: [api:aip-agents-write]
12
+ * URL: /v2/aipAgents/agents/{agentRid}/sessions
13
+ */
14
+ export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
15
+ agentRid: _AipAgents.AgentRid,
16
+ $body: _AipAgents.CreateSessionRequest,
17
+ $queryParams?: {
18
+ preview?: _Core.PreviewMode | undefined;
19
+ }
20
+ ]): Promise<_AipAgents.Session>;
21
+ /**
22
+ * List all conversation sessions between the calling user and an Agent that were created by this client.
23
+ * This does not list sessions for the user created by other clients. For example, any sessions created by
24
+ * the user in AIP Agent Studio will not be listed here.
25
+ * Sessions are returned in order of most recently updated first.
26
+ *
27
+ * @alpha
28
+ *
29
+ * Required Scopes: [api:aip-agents-read]
30
+ * URL: /v2/aipAgents/agents/{agentRid}/sessions
31
+ */
32
+ export declare function list($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
33
+ agentRid: _AipAgents.AgentRid,
34
+ $queryParams?: {
35
+ pageSize?: _Core.PageSize | undefined;
36
+ pageToken?: _Core.PageToken | undefined;
37
+ preview?: _Core.PreviewMode | undefined;
38
+ }
39
+ ]): Promise<_AipAgents.ListSessionsResponse>;
40
+ /**
41
+ * Get details of a conversation session between the calling user and an Agent.
42
+ *
43
+ * @alpha
44
+ *
45
+ * Required Scopes: [api:aip-agents-read]
46
+ * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}
47
+ */
48
+ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
49
+ agentRid: _AipAgents.AgentRid,
50
+ sessionRid: _AipAgents.SessionRid,
51
+ $queryParams?: {
52
+ preview?: _Core.PreviewMode | undefined;
53
+ }
54
+ ]): Promise<_AipAgents.Session>;
55
+ /**
56
+ * Continue a conversation session with an Agent, or add the first exchange to a session after creation.
57
+ * Adds a new exchange to the session with the provided inputs, and generates a response from the Agent.
58
+ * Blocks on returning the result of the added exchange until the response is fully generated.
59
+ * Streamed responses are also supported; see `streamingContinue` for details.
60
+ * Concurrent requests to continue the same session are not supported. Clients should wait
61
+ * to receive a response before sending the next message.
62
+ *
63
+ * @alpha
64
+ *
65
+ * Required Scopes: [api:aip-agents-write]
66
+ * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/blockingContinue
67
+ */
68
+ export declare function blockingContinue($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
69
+ agentRid: _AipAgents.AgentRid,
70
+ sessionRid: _AipAgents.SessionRid,
71
+ $body: _AipAgents.BlockingContinueSessionRequest,
72
+ $queryParams?: {
73
+ preview?: _Core.PreviewMode | undefined;
74
+ }
75
+ ]): Promise<_AipAgents.SessionExchangeResult>;
76
+ /**
77
+ * Continue a conversation session with an Agent, or add the first exchange to a session after creation.
78
+ * Adds a new exchange to the session with the provided inputs, and generates a response from the Agent.
79
+ * Returns a stream of the Agent response text (formatted using markdown) for clients to consume as
80
+ * the response is generated.
81
+ * On completion of the streamed response, clients can load the full details of the exchange that was
82
+ * added to the session by reloading the session content.
83
+ * Streamed exchanges also support cancellation; see `cancel` for details.
84
+ * Concurrent requests to continue the same session are not supported. Clients should wait to receive a
85
+ * response, or cancel the in-progress exchange, before sending the next message.
86
+ *
87
+ * @alpha
88
+ *
89
+ * Required Scopes: [api:aip-agents-write]
90
+ * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/streamingContinue
91
+ */
92
+ export declare function streamingContinue($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
93
+ agentRid: _AipAgents.AgentRid,
94
+ sessionRid: _AipAgents.SessionRid,
95
+ $body: _AipAgents.StreamingContinueSessionRequest,
96
+ $queryParams?: {
97
+ preview?: _Core.PreviewMode | undefined;
98
+ }
99
+ ]): Promise<Blob>;
100
+ /**
101
+ * Cancel an in-progress streamed exchange with an Agent which was initiated with `streamingContinue`.
102
+ * Canceling an exchange allows clients to prevent the exchange from being added to the session,
103
+ * or to provide a response to replace the Agent-generated response.
104
+ * Note that canceling an exchange does not terminate the stream returned by `streamingContinue`;
105
+ * clients should close the stream on triggering the cancellation request to stop reading from the stream.
106
+ *
107
+ * @alpha
108
+ *
109
+ * Required Scopes: [api:aip-agents-write]
110
+ * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/cancel
111
+ */
112
+ export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
113
+ agentRid: _AipAgents.AgentRid,
114
+ sessionRid: _AipAgents.SessionRid,
115
+ $body: _AipAgents.CancelSessionRequest,
116
+ $queryParams?: {
117
+ preview?: _Core.PreviewMode | undefined;
118
+ }
119
+ ]): Promise<_AipAgents.CancelSessionResponse>;
120
+ /**
121
+ * Retrieve relevant [context](https://www.palantir.com/docs/foundry/agent-studio/core-concepts/#retrieval-context) for a user message
122
+ * from the data sources configured for the session. This allows clients to pre-retrieve context for a user
123
+ * message before sending it to the Agent with the `contextsOverride` option when continuing a session, to
124
+ * allow any pre-processing of the context before sending it to the Agent.
125
+ *
126
+ * @alpha
127
+ *
128
+ * Required Scopes: [api:aip-agents-write]
129
+ * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/ragContext
130
+ */
131
+ export declare function ragContext($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
132
+ agentRid: _AipAgents.AgentRid,
133
+ sessionRid: _AipAgents.SessionRid,
134
+ $body: _AipAgents.RagContextSessionRequest,
135
+ $queryParams?: {
136
+ preview?: _Core.PreviewMode | undefined;
137
+ }
138
+ ]): Promise<_AipAgents.AgentSessionRagContextResponse>;
139
+ //# sourceMappingURL=Session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/public/Session.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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