Skip to content

Commit e7e686d

Browse files
committed
refactor(agents): narrow tool schema helper exports
1 parent d227959 commit e7e686d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/agents/agent-tool-definition-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const TOOL_ERROR_EXEC_COMMAND_HASH_CHARS = 16;
6060
const SENSITIVE_EXEC_ENV_VALUE = "[omitted exec env value]";
6161
const EXEC_COMMAND_PARAM_KEYS = new Set(["command", "cmd"]);
6262

63-
export type ClientToolCallRecorder =
63+
type ClientToolCallRecorder =
6464
| ((toolName: string, params: Record<string, unknown>) => void)
6565
| {
6666
reserve?: (toolCallId: string, toolName: string) => void;

src/agents/agent-tools-parameter-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ function inlineLocalSchemaRefsWithDefs(
595595
}
596596

597597
/** Inline local $ref pointers so providers receive self-contained tool schemas. */
598-
export function inlineLocalToolSchemaRefs(schema: unknown): TSchema {
598+
function inlineLocalToolSchemaRefs(schema: unknown): TSchema {
599599
if (!schema || typeof schema !== "object") {
600600
return schema as TSchema;
601601
}

0 commit comments

Comments
 (0)