praval.providers.openai๏
OpenAI provider implementation for Praval framework.
Provides integration with OpenAIโs Chat Completions API with support for conversation history, tool calling, and streaming responses.
Classes
|
OpenAI provider for LLM interactions. |
- class praval.providers.openai.OpenAIProvider(config)[source]๏
Bases:
objectOpenAI provider for LLM interactions.
Handles communication with OpenAIโs GPT models through the Chat Completions API with support for tools and conversation history.
- __init__(config)[source]๏
Initialize OpenAI provider.
- Parameters:
config โ AgentConfig object with provider settings
- Raises:
ProviderError โ If OpenAI client initialization fails