Skip to content

Commit 5eca660

Browse files
improvement(langsmith): add wand for batch ingestion schemas (#2827)
1 parent 3db9ad2 commit 5eca660

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

apps/sim/blocks/blocks/langsmith.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ export const LangsmithBlock: BlockConfig<LangsmithResponse> = {
6868
id: 'start_time',
6969
title: 'Start Time',
7070
type: 'short-input',
71-
placeholder: '2025-01-01T12:00:00Z',
71+
placeholder: 'e.g. 2025-01-01T12:00:00Z (defaults to now)',
7272
condition: { field: 'operation', value: 'langsmith_create_run' },
73-
value: () => new Date().toISOString(),
7473
},
7574
{
7675
id: 'end_time',
@@ -182,6 +181,14 @@ export const LangsmithBlock: BlockConfig<LangsmithResponse> = {
182181
type: 'code',
183182
placeholder: '[{"id":"...","name":"...","run_type":"chain","start_time":"..."}]',
184183
condition: { field: 'operation', value: 'langsmith_create_runs_batch' },
184+
wandConfig: {
185+
enabled: true,
186+
generationType: 'json-object',
187+
prompt: `Output ONLY a JSON array with a single LangSmith run object. No explanation.
188+
Required: name (string), run_type ("tool"|"chain"|"llm"|"retriever"|"embedding"|"prompt"|"parser")
189+
Optional: inputs, outputs, tags, extra, session_name, end_time
190+
Fields id, trace_id, dotted_order, start_time are auto-generated if omitted.`,
191+
},
185192
},
186193
{
187194
id: 'patch',
@@ -190,6 +197,13 @@ export const LangsmithBlock: BlockConfig<LangsmithResponse> = {
190197
placeholder: '[{"id":"...","name":"...","run_type":"chain","start_time":"..."}]',
191198
condition: { field: 'operation', value: 'langsmith_create_runs_batch' },
192199
mode: 'advanced',
200+
wandConfig: {
201+
enabled: true,
202+
generationType: 'json-object',
203+
prompt: `Output ONLY a JSON array with a single LangSmith run object to update. No explanation.
204+
Required: id (existing run UUID), name, run_type ("tool"|"chain"|"llm"|"retriever"|"embedding"|"prompt"|"parser")
205+
Common patch fields: outputs, end_time, status, error`,
206+
},
193207
},
194208
],
195209
tools: {

0 commit comments

Comments
 (0)