Skip to main content

Crate daimon_provider_openai

Crate daimon_provider_openai 

Source
Expand description

OpenAI model provider for the Daimon agent framework.

This crate provides an implementation of the Model trait that connects to the OpenAI Chat Completions API. It supports configurable timeouts, retries with exponential backoff, response format constraints, and parallel tool calls.

§Example

ⓘ
use daimon_provider_openai::OpenAi;
use daimon_core::Model;

let model = OpenAi::new("gpt-4o");

Modules§

embedding
OpenAI embeddings provider (text-embedding-3-small, text-embedding-3-large, etc.).

Structs§

OpenAi
OpenAI model provider for the Chat Completions API.

Constants§

DEFAULT_MAX_RETRIES