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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agentforge_openai-0.2.4.tar.gz
Algorithm Hash digest
SHA256 24e5b5e738776ed86327898a789c1e128e8b56b773e3ea8c4d04d3f811ed1aa6
MD5 5b5c239bf8b718d93b841c44726a6955
BLAKE2b-256 48b73c6efe5f3fdb0068b6ac74d3f4289cf7b61f62adf8f4f065d5669749e45d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentforge_openai-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bf9cd399c02c589e67822b51ccf095c1ca269411ade9a048491284d7d7d4b39e
MD5 1a0566c43b011922a5bead68c2e1f291
BLAKE2b-256 1bf184a33dc25394d04a7b3dbeb238aab6b228c42ea41184cf3bbdd82a11fc71

See more details on using hashes here.

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