Skip to main content

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.

Metadata

Release files for agentforge-openai 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentforge-openai 0.4.0
File Size Uploaded Provenance Actions
agentforge_openai-0.4.0.tar.gz 16.0 kB With provenance Details for agentforge_openai-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentforge-openai 0.4.0
File Interpreter ABI Platform Actions
agentforge_openai-0.4.0-py3-none-any.whl Python 3 none any Details for agentforge_openai-0.4.0-py3-none-any.whl

Total release size: 32.0 kB

Release files / agentforge_openai-0.4.0.tar.gz

Download URL agentforge_openai-0.4.0.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
905748ae1270d91059d1b97893d54d859b5333d6bdc814f8d97aa46a0519ab1f
BLAKE2b-256 checksum
How to use checksums
0f9653111e67baa0ca62ef50ca864ea5b73de71967fc9a8c85cf3c19f6c8d31c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

Release files / agentforge_openai-0.4.0-py3-none-any.whl

Download URL agentforge_openai-0.4.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
769f8a7e667d2653df6c6555c29577b1a6055bf48af3c5f8312c15ac9e448f7b
BLAKE2b-256 checksum
How to use checksums
250ef58e0dd61ab2a0870a8e168bf0cc8d66807459215f254a24fec8b8794197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

Security for agentforge-openai 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agentforge_openai-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page