@soat/sdk 0.19.0 → 0.19.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/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -525,7 +525,7 @@ type Agent = {
|
|
|
525
525
|
};
|
|
526
526
|
} | null;
|
|
527
527
|
/**
|
|
528
|
-
* JSON Schema describing the structured object the model must return. When set, non-streaming generations
|
|
528
|
+
* JSON Schema describing the structured object the model must return. When set, non-streaming generations constrain output to this schema and the parsed value is returned as `output.object`. The schema is enforced on the way back, not just sent to the model: an object that violates it fails the generation with 502 `OUTPUT_SCHEMA_VALIDATION_FAILED`, naming the violated field. Constraints beyond `required`/`type` (`minLength`, `enum`, `pattern`, `minItems`) are honored and are what reject a structurally valid but degenerate answer. See the Structured Output section in the Agents module docs.
|
|
529
529
|
*/
|
|
530
530
|
output_schema?: {
|
|
531
531
|
[key: string]: unknown;
|
|
@@ -723,7 +723,7 @@ type CreateAgentRequest = {
|
|
|
723
723
|
};
|
|
724
724
|
};
|
|
725
725
|
/**
|
|
726
|
-
* JSON Schema describing the structured object the model must return. When set, non-streaming generations
|
|
726
|
+
* JSON Schema describing the structured object the model must return. When set, non-streaming generations constrain output to this schema and the parsed value is returned as `output.object`. The schema is enforced on the way back, not just sent to the model: an object that violates it fails the generation with 502 `OUTPUT_SCHEMA_VALIDATION_FAILED`, naming the violated field. Constraints beyond `required`/`type` (`minLength`, `enum`, `pattern`, `minItems`) are honored and are what reject a structurally valid but degenerate answer. See the Structured Output section in the Agents module docs.
|
|
727
727
|
*/
|
|
728
728
|
output_schema?: {
|
|
729
729
|
[key: string]: unknown;
|
|
@@ -827,7 +827,7 @@ type UpdateAgentRequest = {
|
|
|
827
827
|
};
|
|
828
828
|
} | null;
|
|
829
829
|
/**
|
|
830
|
-
* JSON Schema describing the structured object the model must return. When set, non-streaming generations
|
|
830
|
+
* JSON Schema describing the structured object the model must return. When set, non-streaming generations constrain output to this schema and the parsed value is returned as `output.object`. The schema is enforced on the way back, not just sent to the model: an object that violates it fails the generation with 502 `OUTPUT_SCHEMA_VALIDATION_FAILED`, naming the violated field. Constraints beyond `required`/`type` (`minLength`, `enum`, `pattern`, `minItems`) are honored and are what reject a structurally valid but degenerate answer. See the Structured Output section in the Agents module docs.
|
|
831
831
|
*/
|
|
832
832
|
output_schema?: {
|
|
833
833
|
[key: string]: unknown;
|
|
@@ -6091,7 +6091,7 @@ type CreateAgentGenerationErrors = {
|
|
|
6091
6091
|
*/
|
|
6092
6092
|
404: ErrorResponse;
|
|
6093
6093
|
/**
|
|
6094
|
-
* Upstream AI provider error (AI_PROVIDER_ERROR). The error `meta` includes the `generation_id` and `trace_id` of the failed generation for post-mortem debugging via GET /api/v1/generations/{generation_id}.
|
|
6094
|
+
* Upstream AI provider error (AI_PROVIDER_ERROR), or model output that does not satisfy the agent's `output_schema` (OUTPUT_SCHEMA_VALIDATION_FAILED — the violated field is named in the message). The error `meta` includes the `generation_id` and `trace_id` of the failed generation for post-mortem debugging via GET /api/v1/generations/{generation_id}.
|
|
6095
6095
|
*
|
|
6096
6096
|
*/
|
|
6097
6097
|
502: ErrorResponse;
|
package/dist/index.d.mts
CHANGED
|
@@ -525,7 +525,7 @@ type Agent = {
|
|
|
525
525
|
};
|
|
526
526
|
} | null;
|
|
527
527
|
/**
|
|
528
|
-
* JSON Schema describing the structured object the model must return. When set, non-streaming generations
|
|
528
|
+
* JSON Schema describing the structured object the model must return. When set, non-streaming generations constrain output to this schema and the parsed value is returned as `output.object`. The schema is enforced on the way back, not just sent to the model: an object that violates it fails the generation with 502 `OUTPUT_SCHEMA_VALIDATION_FAILED`, naming the violated field. Constraints beyond `required`/`type` (`minLength`, `enum`, `pattern`, `minItems`) are honored and are what reject a structurally valid but degenerate answer. See the Structured Output section in the Agents module docs.
|
|
529
529
|
*/
|
|
530
530
|
output_schema?: {
|
|
531
531
|
[key: string]: unknown;
|
|
@@ -723,7 +723,7 @@ type CreateAgentRequest = {
|
|
|
723
723
|
};
|
|
724
724
|
};
|
|
725
725
|
/**
|
|
726
|
-
* JSON Schema describing the structured object the model must return. When set, non-streaming generations
|
|
726
|
+
* JSON Schema describing the structured object the model must return. When set, non-streaming generations constrain output to this schema and the parsed value is returned as `output.object`. The schema is enforced on the way back, not just sent to the model: an object that violates it fails the generation with 502 `OUTPUT_SCHEMA_VALIDATION_FAILED`, naming the violated field. Constraints beyond `required`/`type` (`minLength`, `enum`, `pattern`, `minItems`) are honored and are what reject a structurally valid but degenerate answer. See the Structured Output section in the Agents module docs.
|
|
727
727
|
*/
|
|
728
728
|
output_schema?: {
|
|
729
729
|
[key: string]: unknown;
|
|
@@ -827,7 +827,7 @@ type UpdateAgentRequest = {
|
|
|
827
827
|
};
|
|
828
828
|
} | null;
|
|
829
829
|
/**
|
|
830
|
-
* JSON Schema describing the structured object the model must return. When set, non-streaming generations
|
|
830
|
+
* JSON Schema describing the structured object the model must return. When set, non-streaming generations constrain output to this schema and the parsed value is returned as `output.object`. The schema is enforced on the way back, not just sent to the model: an object that violates it fails the generation with 502 `OUTPUT_SCHEMA_VALIDATION_FAILED`, naming the violated field. Constraints beyond `required`/`type` (`minLength`, `enum`, `pattern`, `minItems`) are honored and are what reject a structurally valid but degenerate answer. See the Structured Output section in the Agents module docs.
|
|
831
831
|
*/
|
|
832
832
|
output_schema?: {
|
|
833
833
|
[key: string]: unknown;
|
|
@@ -6091,7 +6091,7 @@ type CreateAgentGenerationErrors = {
|
|
|
6091
6091
|
*/
|
|
6092
6092
|
404: ErrorResponse;
|
|
6093
6093
|
/**
|
|
6094
|
-
* Upstream AI provider error (AI_PROVIDER_ERROR). The error `meta` includes the `generation_id` and `trace_id` of the failed generation for post-mortem debugging via GET /api/v1/generations/{generation_id}.
|
|
6094
|
+
* Upstream AI provider error (AI_PROVIDER_ERROR), or model output that does not satisfy the agent's `output_schema` (OUTPUT_SCHEMA_VALIDATION_FAILED — the violated field is named in the message). The error `meta` includes the `generation_id` and `trace_id` of the failed generation for post-mortem debugging via GET /api/v1/generations/{generation_id}.
|
|
6095
6095
|
*
|
|
6096
6096
|
*/
|
|
6097
6097
|
502: ErrorResponse;
|