AAI SDK
    Preparing search index...

    Variable HostConfigMessageSchemaConst

    HostConfigMessageSchema: z.ZodObject<
        {
            audioFormat: z.ZodOptional<z.ZodEnum<{ pcm16: "pcm16" }>>;
            host: z.ZodObject<
                {
                    greeting: z.ZodOptional<z.ZodString>;
                    sttPrompt: z.ZodOptional<z.ZodString>;
                    systemPrompt: z.ZodString;
                    tools: z.ZodArray<
                        z.ZodObject<
                            {
                                description: z.ZodString;
                                name: z.ZodString;
                                parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                                type: z.ZodLiteral<"function">;
                            },
                            z.core.$strip,
                        >,
                    >;
                },
                z.core.$strip,
            >;
            sampleRate: z.ZodOptional<z.ZodNumber>;
            ttsSampleRate: z.ZodOptional<z.ZodNumber>;
            type: z.ZodLiteral<"config">;
        },
        z.core.$strip,
    >

    The host-mode handshake frame: the first inbound message on a host-mode WebSocket connection, carrying the HostConfigSchema payload.

    A host-mode client sends a single config frame that also carries the audio negotiation fields (audioFormat/sampleRate/ttsSampleRate) alongside host; they are captured here (optional) so the host-mode handshake can honor the client's requested sample rates instead of discarding them.