DocsRuntimellm-providersOpenAIStreamParams
Package: @hexos/runtime

Parameters for streaming chat completions with the OpenAI provider.

interface OpenAIStreamParams {
    client: OpenAI;
    input: RuntimeInput;
    agent: AgentDefinition;
    messageId: string;
    currentAgentId: string;
    tools?: OpenAI.Chat.Completions.ChatCompletionTool[];
    dependencies: ProviderDependencies;
    maxIterationsExceededCode: string;
}

client

OpenAI

input

agent

messageId

string

currentAgentId

string

tools

OpenAI.Chat.Completions.ChatCompletionTool[]

dependencies

maxIterationsExceededCode

string