mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:50:43 +00:00
fix: restore agent tool prep typing
This commit is contained in:
@@ -153,7 +153,7 @@ describe("createOAuthManager", () => {
|
||||
const cfg = {
|
||||
models: {
|
||||
providers: {
|
||||
"openai-codex": { auth: "oauth", models: [] },
|
||||
"openai-codex": { auth: "oauth", baseUrl: "", models: [] },
|
||||
},
|
||||
},
|
||||
} satisfies OpenClawConfig;
|
||||
|
||||
@@ -367,6 +367,8 @@ export function createOpenClawCodingTools(options?: {
|
||||
authProfileStore?: AuthProfileStore;
|
||||
/** Callback invoked when sessions_yield tool is called. */
|
||||
onYield?: (message: string) => Promise<void> | void;
|
||||
/** Optional instrumentation callback for tool preparation stage timing. */
|
||||
recordToolPrepStage?: (name: string) => void;
|
||||
}): AnyAgentTool[] {
|
||||
const execToolName = "exec";
|
||||
const sandbox = options?.sandbox?.enabled ? options.sandbox : undefined;
|
||||
|
||||
Reference in New Issue
Block a user