UNPKG

services-as-software

Version:

Primitives for building AI-powered services that operate as software

25 lines 596 B
/** * Service client for connecting to remote services */ import type { ServiceClient, ClientConfig } from './types.js'; /** * Create a client to connect to a remote service * * @example * ```ts * const client = Client({ * url: 'https://api.example.com/translation', * auth: { * type: 'api-key', * credentials: { apiKey: process.env.API_KEY }, * }, * }) * * const result = await client.do('translate', { * text: 'Hello world', * to: 'es', * }) * ``` */ export declare function Client(config: ClientConfig): ServiceClient; //# sourceMappingURL=client.d.ts.map