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

Function getWorkspaceDefaultAgent

ui/src/components/workspace/api.ts:198–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196}
197
198export async function getWorkspaceDefaultAgent(): Promise<string | null> {
199 const res = await fetch('/api/config/workspace-default-agent');
200 if (!res.ok) return null;
201 const body = (await res.json()) as { agent?: string | null };
202 return body.agent ?? null;
203}
204
205export async function setWorkspaceDefaultAgent(agent: string | null): Promise<string | null> {
206 const res = await fetch('/api/config/workspace-default-agent', {

Callers 1

WorkspacesProviderFunction · 0.90

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected