@ank1015/agents-provider-fireworks
v0.1.1
Published
Fireworks Chat Completions runtime adapter for @ank1015/agents.
Maintainers
Readme
@ank1015/agents-provider-fireworks
Runtime Fireworks Chat Completions provider adapter for the @ank1015/agents packages.
This package uses Fireworks' OpenAI-compatible Chat Completions endpoint through the openai SDK. It streams Fireworks chunks into the normalized assistant event stream used by @ank1015/agents-contracts.
Install
pnpm add @ank1015/agents-provider-fireworksUsage
import { createFireworksProviderAdapter } from '@ank1015/agents-provider-fireworks';
const adapter = createFireworksProviderAdapter({
provider: 'fireworks',
apiKey: {
type: 'env',
name: 'FIREWORKS_API_KEY',
},
});The default base URL is https://api.fireworks.ai/inference/v1. Pass baseUrl in provider config to override it.
Notes
- Runtime model support is catalog-only through
@ank1015/agents-provider-fireworks-spec. max_tokensis only sent when callers provideproviderOptions.max_tokens.- Fireworks custom grammar tools are not accepted through generic request
tools; useproviderOptions.response_formatwithtype: 'grammar'instead.
