agenthub-typescript

Solid

Guidance for using the AgentHub TypeScript SDK (`@prismshadow/agenthub`). Use when developing agents that call different LLM APIs, need a unified interface for LLM providers, mention AgentHub, request `@prismshadow/agenthub`, 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 TypeScript AgentHub is a unified SDK for calling LLMs across providers with shared data models, tool calling, tracing, and playground support. ## Installation ```bash npm install @prismshadow/agenthub ``` 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. ```typescript import { AutoLLMClient } from "@prismshadow/agenthub"; function getWeather(location: string): string { return `Temperature in ${location}: 22 C`; } // Map tool names to their implementations so calls can be dispatched by name. const TOOLS: Record<string, (args: Record<string, any>) => string> = { get_weather: (args) => getWeather(args.location as string), }; async function main(): Promise<void> { const weatherTool = { name: "get_weather", description: "Gets the current weather for a given location.", parameters: { type: "object" as const, properties: { location: { type: "string" as const, description: "The city name", }, }, required: ["location"], }, }; const client = new AutoLLMClient({ model: "gpt-5.5" }); const config = { tools: [weatherTool] }; let toolCall: { name: string; arguments: Record<string, any>; tool_call_id: string } | null = null; for await (const event of client.streamingResponseStateful({ message: { role: "user", content_items: [{...

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