Skip to content

Commit e2a540e

Browse files
authored
fix: Rename keys in action requests and review configs in the JS version
1 parent 53eaf01 commit e2a540e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/oss/langchain/human-in-the-loop.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ print(result['__interrupt__'])
185185
# > 'action_requests': [
186186
# > {
187187
# > 'name': 'execute_sql',
188-
# > 'args': {'query': 'DELETE FROM records WHERE created_at < NOW() - INTERVAL \'30 days\';'},
188+
# > 'arguments': {'query': 'DELETE FROM records WHERE created_at < NOW() - INTERVAL \'30 days\';'},
189189
# > 'description': 'Tool execution pending approval\n\nTool: execute_sql\nArgs: {...}'
190190
# > }
191191
# > ],
@@ -233,17 +233,17 @@ console.log(result.__interrupt__);
233233
// > [
234234
// > Interrupt(
235235
// > value: {
236-
// > action_requests: [
236+
// > actionRequests: [
237237
// > {
238238
// > name: 'execute_sql',
239-
// > args: { query: 'DELETE FROM records WHERE created_at < NOW() - INTERVAL \'30 days\';' },
239+
// > arguments: { query: 'DELETE FROM records WHERE created_at < NOW() - INTERVAL \'30 days\';' },
240240
// > description: 'Tool execution pending approval\n\nTool: execute_sql\nArgs: {...}'
241241
// > }
242242
// > ],
243-
// > review_configs: [
243+
// > reviewConfigs: [
244244
// > {
245-
// > action_name: 'execute_sql',
246-
// > allowed_decisions: ['approve', 'reject']
245+
// > actionName: 'execute_sql',
246+
// > allowedDecisions: ['approve', 'reject']
247247
// > }
248248
// > ]
249249
// > }

0 commit comments

Comments
 (0)