agent-lattice 0.9.16 → 0.9.18

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 CHANGED
@@ -78,21 +78,9 @@ 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
-
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
- ```
81
+ When `outputFormat` is set, the SDK sends structured output parameters to the
82
+ provider and returns the final text unchanged. Parse or validate the returned
83
+ JSON in your application when you need a typed value.
96
84
 
97
85
  ## Multimodal Input
98
86
 
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";
@@ -459,8 +457,6 @@ export declare class MaxTurnsError extends AgentSDKError {
459
457
  }
460
458
  export declare class AbortError extends AgentSDKError {
461
459
  }
462
- export declare class StructuredOutputError extends AgentSDKError {
463
- }
464
460
  export declare class ToolPermissionDeniedError extends AgentSDKError {
465
461
  readonly denial: PermissionDenial;
466
462
  constructor(denial: PermissionDenial);