@agentpulselabs/ai-hub-client
v0.1.0
Published
Typed AppBridge client for the ai-hub app.
Readme
@agentpulselabs/ai-hub-client
Typed AppBridge client for the ai-hub app. Bridge-injected — no runtime dependency on ai-hub or @agentpulse/platform.
Install
npm i @agentpulselabs/ai-hub-clientUsage
import { createClient } from '@agentpulselabs/ai-hub-client';
const ai_hub = createClient(Platform.Bridge);
const result = await ai_hub.generationExecute(payload);Operations (AiHub)
| Method | Op | Summary |
| --- | --- | --- |
| generationExecute | generation:execute | Generate a chat/completion response via the team's configured AI provider (OpenAI-compatible request/response shape). |
| generationImage | generation:image | Generate an image (text-to-image) via the team's configured AI provider. |
| providersGetBinding | providers:get-binding | Read an app's provider binding for a feature (provider id, or null if unbound). |
| providersHasAny | providers:has-any | Whether the team has any AI provider configured (setup/health checks). |
| providersList | providers:list | The team's active AI providers (id/name/type/default flag), for setup pickers. |
| providersResolve | providers:resolve | Resolve the effective AI provider for the team (feature mapping -> team default -> any mapped provider). |
| providersResolveMapped | providers:resolve-mapped | STRICT provider resolution (no fallback): highest-priority active provider mapped for the team across appCodes[], or null. |
| providersSetBinding | providers:set-binding | Replace an app's provider binding for a feature. |
