优化Agent Connect时的agent状态获取
This commit is contained in:
@@ -9,6 +9,7 @@ import type {
|
||||
SidebarData,
|
||||
ConnectionInfo,
|
||||
AcpAgentInfo,
|
||||
AcpAgentStatus,
|
||||
AgentSkillScope,
|
||||
AgentSkillLayout,
|
||||
AgentSkillItem,
|
||||
@@ -153,6 +154,12 @@ export async function acpListAgents(): Promise<AcpAgentInfo[]> {
|
||||
return invoke("acp_list_agents")
|
||||
}
|
||||
|
||||
export async function acpGetAgentStatus(
|
||||
agentType: AgentType
|
||||
): Promise<AcpAgentStatus> {
|
||||
return invoke("acp_get_agent_status", { agentType })
|
||||
}
|
||||
|
||||
export async function acpClearBinaryCache(agentType: AgentType): Promise<void> {
|
||||
return invoke("acp_clear_binary_cache", { agentType })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user