actrone-memory
    Preparing search index...

    Interface ChatCompleterLike

    Minimal structural interface for an OpenAI-compatible chat client (the openai SDK's AsyncOpenAI satisfies it), injected so actrone-memory needs no hard openai dependency.

    interface ChatCompleterLike {
        chat: {
            completions: {
                create(
                    args: {
                        model: string;
                        messages: { role: string; content: string }[];
                        response_format?: { type: "json_object" };
                        max_tokens?: number;
                        temperature?: number;
                    },
                ): Promise<{ choices: { message: { content: string | null } }[] }>;
            };
        };
    }
    Index
    chat: {
        completions: {
            create(
                args: {
                    model: string;
                    messages: { role: string; content: string }[];
                    response_format?: { type: "json_object" };
                    max_tokens?: number;
                    temperature?: number;
                },
            ): Promise<{ choices: { message: { content: string | null } }[] }>;
        };
    }