Skip to main content

Agenthub OpenAI Agent

This package contains the OpenAI agent implementation for AgentHub.

Installation

pip install agenthub-openai

Usage

from agenthub import Team, Agent

team = Team()

def get_weather(location) -> str:
    return "{'temp':67, 'unit':'F'}"

weather_agent = Agent(
    name="Weather AI",
    instructions="You are a helpful agent.",
    functions=[get_weather],
)

messages = [{"role": "user", "content": "What's the weather in NYC?"}]

response = team.run(agent=weather_agent, messages=messages)
print(response.messages[-1]["content"])

Metadata

Release files for agenthub-openai 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agenthub-openai 0.0.7
File Size Uploaded Provenance Actions
agenthub_openai-0.0.7.tar.gz 6.6 kB Without provenance Details for agenthub_openai-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agenthub-openai 0.0.7
File Interpreter ABI Platform Actions
agenthub_openai-0.0.7-py3-none-any.whl Python 3 none any Details for agenthub_openai-0.0.7-py3-none-any.whl

Total release size: 13.9 kB

Release files / agenthub_openai-0.0.7.tar.gz

Download URL agenthub_openai-0.0.7.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dc79d6264bfb698b0281b00d92b020bbc5bb2777f6cb005632c8339beb5b206c
BLAKE2b-256 checksum
How to use checksums
c5389ce8fef27990901219c27b361d4622e599ab4ffa8d09e86766fdcb14a6b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / agenthub_openai-0.0.7-py3-none-any.whl

Download URL agenthub_openai-0.0.7-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcdefa8a465dcb9fe53f93fe9fdff0a33b31cd4bbd6f7ba2b5a728b8f1b7b05b
BLAKE2b-256 checksum
How to use checksums
5ab7109ec1e075d9b08484e1ee4bfd2df87273c7d47af5f02db1297820684de9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for agenthub-openai 0.0.7

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.0.7 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