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

21 lines (20 loc) 882 B
import type { CharacterFormSchemaV2 } from '@base/config/v2/schema'; import type { UseFormReturn } from 'react-hook-form'; import type { DraftSettingsForm } from '.'; type UseManagedServiceSecretsParams = { modelProviderPlugins?: CharacterFormSchemaV2['plugins']; defaultEnabled?: boolean; }; type FormMethodsProp = { character: Pick<UseFormReturn<CharacterFormSchemaV2>, 'setValue' | 'getValues'>; settings: Pick<UseFormReturn<DraftSettingsForm>, 'setValue' | 'resetField' | 'unregister'>; }; export declare const useManagedServiceSecretsV2: ({ modelProviderPlugins, }: UseManagedServiceSecretsParams) => { isManagedServiceEnabled: boolean; toggleManagedService: ({ formMethods, }: { formMethods: FormMethodsProp; }) => void; syncManagedServiceWithForm: (formMethods: FormMethodsProp) => void; removedSecretKeys: string[]; }; export {};