HumeAI / hume-evi-next-js-starter

Quickly get started with EVI and Next.js
https://hume-evi-next-js-starter.vercel.app
221 stars 87 forks source link

Is there a way to set the system prompt for EVI? #2

Closed akdeb closed 4 months ago

akdeb commented 4 months ago

I am trying to set a custom system prompt for my use case. Is this currently possible with EVI?

akdeb commented 4 months ago

Closing bc has the following props, use sessionSettings

type VoiceProviderProps = PropsWithChildren<Parameters<typeof createSocketConfig>[0]> & {
    sessionSettings?: SessionSettings;
    onMessage?: (message: JSONMessage) => void;
    onError?: (err: VoiceError) => void;
    onOpen?: () => void;
    onClose?: VoiceEventMap['close'];
    onToolCall?: ToolCallHandler;
    /**
     * @default true
     * @description Clear messages when the voice is disconnected.
     */
    clearMessagesOnDisconnect?: boolean;
    /**
     * @default 100
     * @description The maximum number of messages to keep in memory.
     */
    messageHistoryLimit?: number;
};