agent-lattice 0.9.16 → 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 +0 -12
- package/dist/index.d.ts +0 -2
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,18 +82,6 @@ When `outputFormat` is set, the SDK verifies that the final answer is a pure
|
|
|
82
82
|
JSON value. If a compatible provider ignores structured output parameters and
|
|
83
83
|
returns Markdown or prose, the run finishes with an error result.
|
|
84
84
|
|
|
85
|
-
For GLM/ZAI-compatible providers, use `structuredOutputMode: "json_object"` if
|
|
86
|
-
your `baseURL` is a custom proxy that auto-detection cannot recognize:
|
|
87
|
-
|
|
88
|
-
```ts
|
|
89
|
-
const agent = createAgent({
|
|
90
|
-
apiKey: process.env.ZAI_API_KEY,
|
|
91
|
-
baseURL: "https://api.bigmodel.cn/anthropic",
|
|
92
|
-
model: "glm-5.2",
|
|
93
|
-
structuredOutputMode: "json_object",
|
|
94
|
-
});
|
|
95
|
-
```
|
|
96
|
-
|
|
97
85
|
## Multimodal Input
|
|
98
86
|
|
|
99
87
|
Pass Anthropic-compatible content blocks for image or document prompts:
|
package/dist/index.d.ts
CHANGED
|
@@ -357,7 +357,6 @@ export type AgentWorkspaceOptions = string | {
|
|
|
357
357
|
export type AgentOptions<TContext = unknown> = {
|
|
358
358
|
apiKey?: string;
|
|
359
359
|
baseURL?: string;
|
|
360
|
-
structuredOutputMode?: StructuredOutputMode;
|
|
361
360
|
name?: string;
|
|
362
361
|
model: string;
|
|
363
362
|
systemPrompt?: string;
|
|
@@ -386,7 +385,6 @@ export type QueryOptions<TContext = unknown> = {
|
|
|
386
385
|
tracer?: ContextTracer;
|
|
387
386
|
};
|
|
388
387
|
export type OutputFormat = "json" | BetaJSONOutputFormat;
|
|
389
|
-
export type StructuredOutputMode = "auto" | "anthropic" | "json_object";
|
|
390
388
|
export type SDKSystemInitMessage = {
|
|
391
389
|
type: "system";
|
|
392
390
|
subtype: "init";
|