Update agent orchestration and knowledge flow
Add sub-commander orchestration updates, align frontend integrations, and refine knowledge view behavior without including local data artifacts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,14 @@ export interface AgentStats {
|
||||
status: 'active' | 'idle' | 'disabled'
|
||||
}
|
||||
|
||||
export interface AgentHierarchyStatsNode extends AgentStats {
|
||||
sub_commanders: AgentStats[]
|
||||
}
|
||||
|
||||
export interface AgentHierarchyStats {
|
||||
main_agents: AgentHierarchyStatsNode[]
|
||||
}
|
||||
|
||||
export interface AgentConfig {
|
||||
id: string
|
||||
name: string
|
||||
@@ -22,6 +30,11 @@ export const agentApi = {
|
||||
return res.data
|
||||
},
|
||||
|
||||
async getHierarchyStats(): Promise<AgentHierarchyStats> {
|
||||
const res = await api.get('/api/agents/stats/hierarchy')
|
||||
return res.data
|
||||
},
|
||||
|
||||
async getConfig(id: string): Promise<AgentConfig> {
|
||||
const res = await api.get(`/api/agents/config/${id}`)
|
||||
return res.data
|
||||
|
||||
Reference in New Issue
Block a user