mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-17 07:17:18 +00:00
feat(agent): add event-aware tool permissions
This commit is contained in:
@@ -193,6 +193,8 @@ export interface ApiRespAgent {
|
||||
|
||||
export interface GetAgentMetadataResponseData {
|
||||
runner_config?: PipelineConfigTab;
|
||||
platform_tools: AgentPlatformTool[];
|
||||
host_tools?: PluginTool[] | null;
|
||||
kinds: Array<{
|
||||
name: AgentKind;
|
||||
supported_event_patterns: string[];
|
||||
@@ -200,6 +202,18 @@ export interface GetAgentMetadataResponseData {
|
||||
}>;
|
||||
}
|
||||
|
||||
export interface AgentPlatformTool {
|
||||
name: string;
|
||||
api: string;
|
||||
scope: 'event' | 'platform';
|
||||
category: string;
|
||||
risk: 'read' | 'write' | 'dangerous';
|
||||
label: I18nObject;
|
||||
description: I18nObject;
|
||||
event_patterns: string[];
|
||||
parameters: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface Pipeline {
|
||||
uuid?: string;
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user