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.1.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.3.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentforge_openai-0.3.1.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.3.1.tar.gz
Algorithm Hash digest
SHA256 3b295b7ef2478220cdae2104a921467af814fd51e0001d08e04f6622b3788545
MD5 a10de800d78132e9cdcefc964c40442b
BLAKE2b-256 780703eda045e83bc33f63d9015da2cbb4f2064433ed22d71c0f373f109e5ef5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for agentforge_openai-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96fdb4b3fa66060ce929aa805f4160ca60e28d9062154f6afbc3495f13bae239
MD5 d96a0cc86c2d833ca6bbc3829e7ecb7b
BLAKE2b-256 3ddbb78e6ff591b7e709185a9ff403c62c7b2d007ab6bd31473b48113bee19a6

See more details on using hashes here.

Provenance

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