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.3.0.tar.gz (15.8 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.3.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentforge_openai-0.3.0.tar.gz
  • Upload date:
  • Size: 15.8 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.3.0.tar.gz
Algorithm Hash digest
SHA256 317888c82e5db6dec6b2e9f1a6086ac963e7d85018ebb661a48c32f087739379
MD5 e254ec84f5fe6e734415ab36e300c8bc
BLAKE2b-256 bc93d8c0433ad5120d7be46ce8cf9200b433c232ceb84c866a6ea050f9a45203

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_openai-0.3.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.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_openai-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 423725ca0148046ebe65a32e827fe4e6ef445f541f4b7089bdbbda182f37b7a7
MD5 1f15f5266ecd23c36d09eed147d8c3a0
BLAKE2b-256 12e459950b5b363bfe9f4ade5a37dbe39bc71b3bee7f1b95b4a043fe4fb7e245

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_openai-0.3.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