Package uno.anahata.asi.openai.compatible
package uno.anahata.asi.openai.compatible
Provides a universal, OpenAI-compatible provider implementation for the
Anahata ASI framework.
This package implements the standard OpenAI Chat Completion specification, allowing the framework to interact with any backend that supports the OpenAI API contract. This includes the official OpenAI service as well as compatible alternatives like Groq, DeepSeek, and local inference servers (Ollama, vLLM, etc.).
Key Components:
- Universal Provider:
OpenAiChatCompletionsProviderenables custom base URL configuration for multi-endpoint support. - Model Logic:
OpenAiCompatibleModelhandles payload synthesis, tool declaration mapping, and standard JDK-based HTTP communication. - Response Mapping:
OpenAiCompatibleResponseandOpenAiCompatibleModelMessageparse complex OpenAI-style JSON responses (including tool calls and usage metadata) into the unified Anahata domain model.
- Author:
- anahata
-
ClassDescriptionA universal AI provider for any API endpoint compatible with the OpenAI Chat Completion specification.Enumeration of native server-side tools provided by OpenAI via the Responses API.A concrete implementation of
AbstractModelthat communicates with any OpenAI-compatible Chat Completion API using the standard JDK HttpClient.Concrete model message implementation for OpenAI-compatible Chat Completion APIs.Defines the strategy for extracting reasoning/thought content from an OpenAI-compatible response.Encapsulates the complete response from an OpenAI-compatible API.

