agent-lattice 0.9.18 → 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 +9 -0
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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.
|