agent-lattice 0.9.15 → 0.9.17
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/README.md +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -78,6 +78,10 @@ const result = await agent.prompt("Return the answer to 2 + 2.", {
|
|
|
78
78
|
});
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
+
When `outputFormat` is set, the SDK verifies that the final answer is a pure
|
|
82
|
+
JSON value. If a compatible provider ignores structured output parameters and
|
|
83
|
+
returns Markdown or prose, the run finishes with an error result.
|
|
84
|
+
|
|
81
85
|
## Multimodal Input
|
|
82
86
|
|
|
83
87
|
Pass Anthropic-compatible content blocks for image or document prompts:
|
package/dist/index.d.ts
CHANGED
|
@@ -457,6 +457,8 @@ export declare class MaxTurnsError extends AgentSDKError {
|
|
|
457
457
|
}
|
|
458
458
|
export declare class AbortError extends AgentSDKError {
|
|
459
459
|
}
|
|
460
|
+
export declare class StructuredOutputError extends AgentSDKError {
|
|
461
|
+
}
|
|
460
462
|
export declare class ToolPermissionDeniedError extends AgentSDKError {
|
|
461
463
|
readonly denial: PermissionDenial;
|
|
462
464
|
constructor(denial: PermissionDenial);
|