mirror of
https://github.com/block/buzz.git
synced 2026-10-28 21:11:48 +00:00
15 lines
445 B
TypeScript
15 lines
445 B
TypeScript
import type { AgentModelsResponse } from "@/shared/api/types";
|
|
import { invokeTauri } from "@/shared/api/tauri";
|
|
|
|
export type DiscoverAgentModelsInput = {
|
|
acpCommand?: string;
|
|
agentCommand: string;
|
|
agentArgs?: string[];
|
|
provider?: string;
|
|
envVars?: Record<string, string>;
|
|
};
|
|
|
|
export async function discoverAgentModels(input: DiscoverAgentModelsInput) {
|
|
return invokeTauri<AgentModelsResponse>("discover_agent_models", { input });
|
|
}
|