You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Search the test-kb knowledge base for relevant information. Use this when you need factual information, documentation, or specific details stored in the knowledge base.',
'Search the test-kb knowledge base for relevant information. Use this when you need factual information, documentation, or specific details stored in the knowledge base.',
? `Search the ${tool.name} knowledge base for relevant information. Use this when you need factual information, documentation, or specific details stored in the knowledge base.`
53
-
: undefined),
54
-
endpoint: tool.endpoint,
55
-
})),
55
+
...(request.spec.routes&&{
56
+
routes: request.spec.routes.map((route)=>({
57
+
agent: route.agent,
58
+
condition: route.condition,
59
+
apiUrl: route.apiUrl,
60
+
...(route.apiKey&&{apiKey: route.apiKey}),
61
+
})),
62
+
}),
63
+
...(request.spec.tools&&{
64
+
tools: request.spec.tools.map((tool)=>({
65
+
type: tool.type,
66
+
name: tool.name,
67
+
description:
68
+
tool.description||
69
+
(tool.type==='knowledgeBase'
70
+
? `Search the ${tool.name} knowledge base for relevant information. Use this when you need factual information, documentation, or specific details stored in the knowledge base.`
description: API key for authenticating with the target agent
55
+
required:
56
+
- agent
57
+
- condition
58
+
- apiUrl
30
59
tools:
31
60
type: array
32
61
description: Tools available to the agent
@@ -35,19 +64,23 @@ AplAgentSpec:
35
64
properties:
36
65
type:
37
66
type: string
38
-
description: Type of the tool
67
+
description: Type of the tool (knowledgeBase, mcpServer, subWorkflow, function)
39
68
example: "knowledgeBase"
40
69
name:
41
70
type: string
42
71
description: Name of the tool resource
43
-
example: "company-docs"
72
+
example: "apl-techdocs"
44
73
description:
45
74
type: string
46
75
description: Description of what the tool does
47
-
example: "Search the company-docs knowledge base for relevant information"
48
-
endpoint:
76
+
example: "Search the apl-techdocs knowledge base for relevant information. Use this when you need factual information, documentation, or specific details stored in the knowledge base."
77
+
apiUrl:
78
+
type: string
79
+
description: API URL for the tool (for mcpServer and subWorkflow types)
80
+
example: "https://my-mcp.com"
81
+
apiKey:
49
82
type: string
50
-
description: Optional endpoint URL for the tool
83
+
description: API key for authenticating with the tool (for mcpServer and subWorkflow types)
0 commit comments