Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentforge_openai-0.4.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentforge_openai-0.4.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_openai-0.4.0.tar.gz.

File metadata

  • Download URL: agentforge_openai-0.4.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentforge_openai-0.4.0.tar.gz
Algorithm Hash digest
SHA256 905748ae1270d91059d1b97893d54d859b5333d6bdc814f8d97aa46a0519ab1f
MD5 484f25239a6b86f19d19968ee45df12c
BLAKE2b-256 0f9653111e67baa0ca62ef50ca864ea5b73de71967fc9a8c85cf3c19f6c8d31c

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_openai-0.4.0.tar.gz:

Publisher: release.yml on Scaffoldic/agentforge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentforge_openai-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_openai-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 769f8a7e667d2653df6c6555c29577b1a6055bf48af3c5f8312c15ac9e448f7b
MD5 6c5443d074129ff5b41027f12772f39b
BLAKE2b-256 250ef58e0dd61ab2a0870a8e168bf0cc8d66807459215f254a24fec8b8794197

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_openai-0.4.0-py3-none-any.whl:

Publisher: release.yml on Scaffoldic/agentforge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page