UNPKG

@fleek-platform/agents-ui

Version:

The Fleek Platform Agents UI provides a simple interface for deploying, monitoring, and configuring your agents––making management straightforward

18 lines (17 loc) 562 B
import type { AiAgent } from '@base/api'; export type SaveAgentParams = { characterfile: string; avatar?: string; name?: string; frameworkVersion?: string; }; export declare const useCreateOrUpdateAgent: ({ initialDraft, onAgentDraftSaved, onError, }: { initialDraft?: AiAgent; onAgentDraftSaved: (draft: AiAgent) => void; onError: (error: Error) => void; }) => { saveDraft: (args: SaveAgentParams) => Promise<AiAgent | undefined>; isSavingDraft: boolean; savedDraft: AiAgent | undefined; error: Error | undefined; };