openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
39 lines • 2.92 kB
TypeScript
import { As as AgentToolResultMiddlewareEvent, Dc as resolveActiveSessionRunId, Ec as abortEmbeddedAgentRun, GD as TrustedSubagentCompletionHandoff, Hs as resolveRequesterToolPolicies, Jn as createOpenClawCodingTools, Os as AgentToolResultMiddleware, Ps as OpenClawAgentToolResult, Tc as abortAndDrainEmbeddedAgentRun, Va as disposeRegisteredAgentHarnesses, Wt as AgentHarness, Yn as createOpenClawCodingToolsAsync, ca as createAgentToolResultMiddlewareRunner, ck as SandboxToolPolicy, dO as ScheduledToolPolicyContext, gi as EmbeddedRunAttemptParamsV2, gn as AgentHarnessV2, hi as EmbeddedRunAttemptParams, lM as InputProvenance, la as createCodexAppServerToolResultExtensionRunner } from "../config-contracts-DqOiJKQx.js";
import { P as OpenClawConfig } from "../types-D3g9JHH2.js";
import { n as AnyAgentTool } from "../common-CQdhR1vx.js";
//#region src/agents/web-search-tool-policy.d.ts
type WebSearchToolPolicyParams = {
webSearchEnabled?: boolean;
config?: OpenClawConfig;
modelProvider?: string;
modelId?: string;
agentId?: string;
sessionKey?: string;
sessionId?: string;
sandboxToolPolicy?: SandboxToolPolicy;
messageProvider?: string;
agentAccountId?: string | null;
groupId?: string | null;
groupChannel?: string | null;
groupSpace?: string | null;
spawnedBy?: string | null;
senderId?: string | null;
senderName?: string | null;
senderUsername?: string | null;
senderE164?: string | null;
inputProvenance?: InputProvenance;
trustedInternalHandoff?: TrustedSubagentCompletionHandoff;
scheduledToolPolicy?: ScheduledToolPolicyContext;
runtimeToolAllowlist?: string[];
preparedRequesterPolicy?: Pick<ReturnType<typeof resolveRequesterToolPolicies>, "delegated" | "groupPolicy" | "senderPolicy" | "subagentPolicy" | "inheritedToolPolicy">;
};
type WebSearchToolPolicyResolution = {
allowed: boolean;
persistentAllowed: boolean;
};
/** Prepares stored session capability facts, so callers need no warm Gateway projection. */
export declare function resolveWebSearchToolPolicyAsync(params: WebSearchToolPolicyParams): Promise<WebSearchToolPolicyResolution>;
/** Resolves current and sender-independent policy for the managed web_search tool. */
export declare function resolveWebSearchToolPolicy(params: WebSearchToolPolicyParams): WebSearchToolPolicyResolution;
//#endregion
export { type AgentHarness, type AgentHarnessV2, type AgentToolResultMiddleware, type AgentToolResultMiddlewareEvent, type AnyAgentTool, type EmbeddedRunAttemptParams, type EmbeddedRunAttemptParamsV2, type OpenClawAgentToolResult, abortEmbeddedAgentRun as abortAgentHarnessRun, abortAndDrainEmbeddedAgentRun as abortAndDrainAgentHarnessRun, createAgentToolResultMiddlewareRunner, createCodexAppServerToolResultExtensionRunner, createOpenClawCodingTools, createOpenClawCodingToolsAsync, disposeRegisteredAgentHarnesses, resolveActiveSessionRunId as resolveActiveEmbeddedRunSessionId };