@soat/sdk 0.6.3 → 0.6.5

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/index.d.cts CHANGED
@@ -1168,6 +1168,14 @@ type AgentResourceProperties = {
1168
1168
  * Sampling temperature
1169
1169
  */
1170
1170
  temperature?: number | null;
1171
+ /**
1172
+ * Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
1173
+ */
1174
+ max_context_messages?: number | null;
1175
+ /**
1176
+ * When true, only one open session per actor_id is allowed for this agent.
1177
+ */
1178
+ single_session_per_actor?: boolean | null;
1171
1179
  /**
1172
1180
  * Knowledge retrieval configuration. When set, relevant documents and memory entries are injected into every generation.
1173
1181
  */
@@ -2225,6 +2233,11 @@ type AddSessionMessageRequest = {
2225
2233
  tool_context?: {
2226
2234
  [key: string]: string;
2227
2235
  } | null;
2236
+ /**
2237
+ * Optional deduplication key scoped to this session. If a message with the same key already exists in the session, the original message is returned with HTTP 200 and no new message or generation is triggered.
2238
+ *
2239
+ */
2240
+ idempotency_key?: string;
2228
2241
  } | {
2229
2242
  /**
2230
2243
  * Public ID of a document used as the user message content.
@@ -2236,6 +2249,11 @@ type AddSessionMessageRequest = {
2236
2249
  tool_context?: {
2237
2250
  [key: string]: string;
2238
2251
  } | null;
2252
+ /**
2253
+ * Optional deduplication key scoped to this session. If a message with the same key already exists in the session, the original message is returned with HTTP 200 and no new message or generation is triggered.
2254
+ *
2255
+ */
2256
+ idempotency_key?: string;
2239
2257
  };
2240
2258
  /**
2241
2259
  * Message saved; auto-generate is off or a generation is already in progress.
@@ -6978,6 +6996,10 @@ type AddSessionMessageErrors = {
6978
6996
  };
6979
6997
  type AddSessionMessageError = AddSessionMessageErrors[keyof AddSessionMessageErrors];
6980
6998
  type AddSessionMessageResponses = {
6999
+ /**
7000
+ * Duplicate request — original message returned (idempotency_key matched)
7001
+ */
7002
+ 200: AddSessionMessageSaved;
6981
7003
  /**
6982
7004
  * User message saved
6983
7005
  */
package/dist/index.d.ts CHANGED
@@ -1168,6 +1168,14 @@ type AgentResourceProperties = {
1168
1168
  * Sampling temperature
1169
1169
  */
1170
1170
  temperature?: number | null;
1171
+ /**
1172
+ * Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
1173
+ */
1174
+ max_context_messages?: number | null;
1175
+ /**
1176
+ * When true, only one open session per actor_id is allowed for this agent.
1177
+ */
1178
+ single_session_per_actor?: boolean | null;
1171
1179
  /**
1172
1180
  * Knowledge retrieval configuration. When set, relevant documents and memory entries are injected into every generation.
1173
1181
  */
@@ -2225,6 +2233,11 @@ type AddSessionMessageRequest = {
2225
2233
  tool_context?: {
2226
2234
  [key: string]: string;
2227
2235
  } | null;
2236
+ /**
2237
+ * Optional deduplication key scoped to this session. If a message with the same key already exists in the session, the original message is returned with HTTP 200 and no new message or generation is triggered.
2238
+ *
2239
+ */
2240
+ idempotency_key?: string;
2228
2241
  } | {
2229
2242
  /**
2230
2243
  * Public ID of a document used as the user message content.
@@ -2236,6 +2249,11 @@ type AddSessionMessageRequest = {
2236
2249
  tool_context?: {
2237
2250
  [key: string]: string;
2238
2251
  } | null;
2252
+ /**
2253
+ * Optional deduplication key scoped to this session. If a message with the same key already exists in the session, the original message is returned with HTTP 200 and no new message or generation is triggered.
2254
+ *
2255
+ */
2256
+ idempotency_key?: string;
2239
2257
  };
2240
2258
  /**
2241
2259
  * Message saved; auto-generate is off or a generation is already in progress.
@@ -6978,6 +6996,10 @@ type AddSessionMessageErrors = {
6978
6996
  };
6979
6997
  type AddSessionMessageError = AddSessionMessageErrors[keyof AddSessionMessageErrors];
6980
6998
  type AddSessionMessageResponses = {
6999
+ /**
7000
+ * Duplicate request — original message returned (idempotency_key matched)
7001
+ */
7002
+ 200: AddSessionMessageSaved;
6981
7003
  /**
6982
7004
  * User message saved
6983
7005
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "TypeScript SDK for the SOAT API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",