Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions packages/sdk/codegen/src/generate-intent-tools.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'node:path';
import { readFile } from 'node:fs/promises';
import path from 'node:path';
import { loadContract, REPO_ROOT, stripBoundParams, writeGeneratedFile } from './shared.mjs';

const TOOLS_OUTPUT_DIR = path.join(REPO_ROOT, 'packages/sdk/tools');
Expand Down Expand Up @@ -495,15 +495,11 @@ function toOpenAiTool(entry) {
}

function toAnthropicTool(entry) {
const tool = {
return {
name: entry.toolName,
description: entry.description,
input_schema: entry.inputSchema,
};
if (entry.inputExamples?.length) {
tool.input_examples = entry.inputExamples;
}
return tool;
}

function toVercelTool(entry) {
Expand Down
Loading