mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
fix(agents): align embedded built-in tool types
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
||||
import type { CreateAgentSessionOptions } from "@mariozechner/pi-coding-agent";
|
||||
import { toToolDefinitions } from "../pi-tool-definition-adapter.js";
|
||||
|
||||
// We always pass tools via `customTools` so our policy filtering, sandbox integration,
|
||||
@@ -6,7 +7,7 @@ import { toToolDefinitions } from "../pi-tool-definition-adapter.js";
|
||||
type AnyAgentTool = AgentTool;
|
||||
|
||||
export function splitSdkTools(options: { tools: AnyAgentTool[]; sandboxEnabled: boolean }): {
|
||||
builtInTools: string[];
|
||||
builtInTools: NonNullable<CreateAgentSessionOptions["tools"]>;
|
||||
customTools: ReturnType<typeof toToolDefinitions>;
|
||||
} {
|
||||
const { tools } = options;
|
||||
|
||||
Reference in New Issue
Block a user