agent-lattice 0.9.17 → 0.9.19

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,9 +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.
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.
84
84
 
85
85
  ## Multimodal Input
86
86
 
@@ -180,8 +180,17 @@ const agent = createAgent({
180
180
  model: "deepseek-v4-flash",
181
181
  tracer,
182
182
  });
183
+
184
+ try {
185
+ await agent.prompt("Trace this run.", { stream: false });
186
+ } finally {
187
+ await tracer.close?.();
188
+ }
183
189
  ```
184
190
 
191
+ Close or flush the LangSmith tracer before a short-lived test process exits so
192
+ LangSmith receives the final root run patch.
193
+
185
194
  If you prefer explicit values over environment variables, pass them to the SDK
186
195
  tracer. `workspaceId` is optional and only selects a LangSmith workspace; it is
187
196
  not the tracing project name.
package/dist/index.d.ts CHANGED
@@ -457,8 +457,6 @@ 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
- }
462
460
  export declare class ToolPermissionDeniedError extends AgentSDKError {
463
461
  readonly denial: PermissionDenial;
464
462
  constructor(denial: PermissionDenial);