OpenAI LLM + embeddings provider for AgentForge — gpt-4o / o-series + text-embedding-3-*
Project description
agentforge-openai
OpenAI native LLM + embedding provider for AgentForge.
Implements both LLMClient and EmbeddingClient against
OpenAI's chat.completions.create() (gpt-4o / o-series) and
embeddings.create() (text-embedding-3-small / -large).
Install
pip install "agentforge-openai[openai]"
The bare pip install agentforge-openai install keeps the
package importable for tests; the production runner needs the
openai SDK, which the [openai] extra pulls in.
Use
from agentforge import Agent
from agentforge_openai import OpenAIClient, OpenAIEmbeddingClient
# Chat
agent = Agent(model="openai:gpt-4o-mini")
# Embeddings (direct construction)
emb = OpenAIEmbeddingClient.from_config(
model="text-embedding-3-small",
api_key="sk-...",
)
Capabilities
OpenAIClient.capabilities() declares: tools, json_mode,
streaming, vision (for gpt-4o* variants). Caching and
extended thinking are not surfaced (OpenAI handles caching
transparently; o-series internal reasoning is not exposed as a
budget-able knob through the public API today).
License
Apache-2.0. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentforge_openai-0.2.3.tar.gz.
File metadata
- Download URL: agentforge_openai-0.2.3.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14c0330f28c3b88fe3a408842dc59ca52f7818a156eb30cf4c3dd993cdba0a85
|
|
| MD5 |
edb9cc7e7b0dc912028fe7590bca1282
|
|
| BLAKE2b-256 |
12e3257ec36e699a11413f22c31d104ae05a7842a6f39930567652ebd76526d5
|
File details
Details for the file agentforge_openai-0.2.3-py3-none-any.whl.
File metadata
- Download URL: agentforge_openai-0.2.3-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13b72a76c34ac5b457946f0dcfb4b4d1ad6909cc566c3f833b66701c80d05075
|
|
| MD5 |
2c4fa64a725e5c4a7870a3e2d57021b0
|
|
| BLAKE2b-256 |
5724369735bb658895919dec61cb12f8eb3e2cc55a58fd591ebb389fb0f19694
|