MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / getAgentConfig

Function getAgentConfig

ui/src/components/workspace/api.ts:667–671  ·  view source on GitHub ↗
(wsId: string)

Source from the content-addressed store, hash-verified

665}
666
667export async function getAgentConfig(wsId: string): Promise<AgentConfigBundle> {
668 const res = await fetch(`/api/workspaces/${encodeURIComponent(wsId)}/agent-config`);
669 if (!res.ok) throw new Error(`get agent config failed: ${res.status}`);
670 return (await res.json()) as AgentConfigBundle;
671}
672
673export async function getAgentReadiness(wsId: string): Promise<AgentReadinessBundle> {
674 const res = await fetch(`/api/workspaces/${encodeURIComponent(wsId)}/agent-readiness`);

Callers 3

WorkspaceAIConfigModalFunction · 0.90
handleSaveFunction · 0.90
handleResetFunction · 0.90

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected