Files
oh-my-opencode/dist/shared/agent-tool-restrictions.d.ts
T
2026-03-14 04:56:50 +00:00

8 lines
353 B
TypeScript

/**
* Agent tool restrictions for session.prompt calls.
* OpenCode SDK's session.prompt `tools` parameter expects boolean values.
* true = tool allowed, false = tool denied.
*/
export declare function getAgentToolRestrictions(agentName: string): Record<string, boolean>;
export declare function hasAgentToolRestrictions(agentName: string): boolean;