Skip to main content

Meshagent

MeshAgent OpenAI

The meshagent.openai package provides adapters to integrate OpenAI models with MeshAgent tools and agents.

Completions Adapter and Responses Adapter

MeshAgent supports both the OpenAI Chat Completions API and Responses API. It is recommended to use the Responses adapter given the newer OpenAI models and functionality use the Responses adapter.

  • OpenAICompletionsAdapter: wraps the OpenAI Chat Completions API. It turns Toolkit objects into OpenAI-style tool definitions and processes tool calls appropriately.
  • OpenAIResponsesAdapter: wraps the newer OpenAI Responses API. It collects tools, handles streaming events, and provides callbacks for advanced features like image generation or web search.
from meshagent.openai import OpenAIResponsesAdapter
from openai import AsyncOpenAI

# Use an OpenAI client inside a MeshAgent LLMAdapter
adapter = OpenAIResponsesAdapter(client=AsyncOpenAI(api_key="sk-..."))

You can also pass base_url= to the built-in OpenAI adapters. If omitted, MeshAgent reads OPENAI_BASE_URL from the environment when constructing the provider client.

Tool Response Adapter

The OpenAICompletionsToolResponseAdapter and OpenAIResponsesToolResponseAdapterconvert a tool's structured response into plain text or JSOn that can beinserted into an OpenAI chat context.


Learn more about MeshAgent on our website or check out the docs for additional examples!

Website: www.meshagent.com

Documentation: docs.meshagent.com


Metadata

Release files for meshagent-openai 0.57.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 meshagent-openai 0.57.0
File Size Uploaded Provenance Actions
meshagent_openai-0.57.0.tar.gz 104.4 kB Without provenance Details for meshagent_openai-0.57.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for meshagent-openai 0.57.0
File Interpreter ABI Platform Actions
meshagent_openai-0.57.0-py3-none-any.whl Python 3 none any Details for meshagent_openai-0.57.0-py3-none-any.whl

Total release size: 190.5 kB

Release files / meshagent_openai-0.57.0.tar.gz

Download URL meshagent_openai-0.57.0.tar.gz
Size 104.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c9ba2e75924fad62394c5e00380e5fe4482dcf95ccd6844987644e0e2110c3b1
BLAKE2b-256 checksum
How to use checksums
4c9f7ace9d5b1c63f566575e870c4ad91fa87b4b8609f7f8f9dcdb5dbee57f71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / meshagent_openai-0.57.0-py3-none-any.whl

Download URL meshagent_openai-0.57.0-py3-none-any.whl
Size 86.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7625acdcee8e0eefca7aa8be05ad5a0f20fdccc224053dd2e1d38244b104d9ef
BLAKE2b-256 checksum
How to use checksums
d45cd6d3a0f94e20e150289059ef9363d2f6eff89088a950e49664c45009d453
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for meshagent-openai 0.57.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.57.0 This release

2 release files No provenance

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