agenthub-python

Solid

Guidance for using the AgentHub Python SDK (`agenthub-python`). Use when developing agents that call different LLM APIs, need a unified interface for LLM providers, mention AgentHub, request `agenthub-python`, or already import it.

AI & Automation 112 stars 13 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 87/100

Stars 20%
68
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# AgentHub Python AgentHub is a unified SDK for calling LLMs across providers with shared data models, tool calling, tracing, and playground support. ## Installation ```bash uv add agenthub-python # or pip install agenthub-python ``` For model IDs, API keys, and base URLs, see [Model selection](reference/models.md). ## Basic Usage This example asks GPT to call a weather tool, runs the tool, then sends the result back. ```python import asyncio from agenthub import AutoLLMClient def get_weather(location: str) -> str: return f"Temperature in {location}: 22 C" # Map tool names to their implementations so calls can be dispatched by name. TOOLS = {"get_weather": get_weather} async def main(): weather_function = { "name": "get_weather", "description": "Gets the current weather for a given location.", "parameters": { "type": "object", "properties": { "location": { "type": "string", "description": "The city name" } }, "required": ["location"] } } client = AutoLLMClient(model="gpt-5.5") config = {"tools": [weather_function]} tool_call = None async for event in client.streaming_response_stateful( message={ "role": "user", "content_items": [{"type": "text", "text": "What's the weather in London?"}] }, config=config ): for item in event["...

Details

Author
Prism-Shadow
Repository
Prism-Shadow/agenthub
Created
7 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category