Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline (Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/* packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
19 lines
502 B
TypeScript
19 lines
502 B
TypeScript
import type { ConnectorTool } from "@rakazo/adapter-kit";
|
|
|
|
export const CLOUD_AGENT_TOOL_NAMES = new Set([
|
|
"cloud_agent_launch",
|
|
"cloud_agent_status",
|
|
"cloud_agent_reply",
|
|
"cloud_agent_cancel",
|
|
]);
|
|
|
|
/** Drop cloud-agent tools when no provider is configured. */
|
|
export function selectCloudAgentTools(
|
|
tools: ConnectorTool[],
|
|
cloudAgentConfigured: boolean,
|
|
): ConnectorTool[] {
|
|
return cloudAgentConfigured
|
|
? tools
|
|
: tools.filter((tool) => !CLOUD_AGENT_TOOL_NAMES.has(tool.name));
|
|
}
|