@entro314labs/ai-changelog-generator
Version:
AI-powered changelog generator with MCP server support - works with most providers, online and local models
267 lines (266 loc) • 8.57 kB
TypeScript
/**
* Amazon Bedrock Provider for AI Changelog Generator
* Uses AWS SDK v3 for Bedrock Runtime
* Supports Claude 4.5, Llama 4, and other Bedrock models (January 2026)
*/
import { BaseProvider } from '../core/base-provider.js';
export declare class BedrockProvider extends BaseProvider {
[key: string]: any;
constructor(config: any);
initializeClient(): void;
getName(): string;
isAvailable(): boolean;
getRequiredEnvVars(): never[];
generateCompletion(messages: any, options?: Record<string, any>): any;
supportsConverseAPI(modelId: any): any;
generateWithConverseAPI(messages: any, options: any, modelId: any): Promise<{
content: any;
model: any;
usage: {
prompt_tokens: any;
completion_tokens: any;
total_tokens: any;
};
finish_reason: any;
tool_calls: any;
}>;
generateWithInvokeModel(messages: any, options: any, modelId: any): Promise<{
content: any;
model: any;
usage: {
prompt_tokens: any;
completion_tokens: any;
total_tokens: any;
};
finish_reason: any;
}>;
getAvailableModels(): Promise<({
name: string;
id: string;
description: string;
contextWindow: number;
extendedContext: number;
capabilities: {
reasoning: boolean;
hybrid_reasoning: boolean;
extended_thinking: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
effort_parameter: boolean;
agentic_coding?: undefined;
computer_use?: undefined;
fast?: undefined;
advancedReasoning?: undefined;
open_source?: undefined;
};
} | {
name: string;
id: string;
description: string;
contextWindow: number;
extendedContext: number;
capabilities: {
effort_parameter?: undefined;
reasoning: boolean;
hybrid_reasoning: boolean;
extended_thinking: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
agentic_coding: boolean;
computer_use: boolean;
fast?: undefined;
advancedReasoning?: undefined;
open_source?: undefined;
};
} | {
extendedContext?: undefined;
name: string;
id: string;
description: string;
contextWindow: number;
capabilities: {
effort_parameter?: undefined;
agentic_coding?: undefined;
computer_use?: undefined;
reasoning: boolean;
hybrid_reasoning: boolean;
extended_thinking: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
fast: boolean;
advancedReasoning?: undefined;
open_source?: undefined;
};
} | {
extendedContext?: undefined;
name: string;
id: string;
description: string;
contextWindow: number;
capabilities: {
effort_parameter?: undefined;
agentic_coding?: undefined;
computer_use?: undefined;
hybrid_reasoning?: undefined;
extended_thinking?: undefined;
fast?: undefined;
reasoning: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
advancedReasoning: boolean;
open_source?: undefined;
};
} | {
extendedContext?: undefined;
name: string;
id: string;
description: string;
contextWindow: number;
capabilities: {
effort_parameter?: undefined;
agentic_coding?: undefined;
computer_use?: undefined;
hybrid_reasoning?: undefined;
extended_thinking?: undefined;
fast?: undefined;
advancedReasoning?: undefined;
reasoning: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
open_source?: undefined;
};
} | {
extendedContext?: undefined;
name: string;
id: string;
description: string;
contextWindow: number;
capabilities: {
effort_parameter?: undefined;
agentic_coding?: undefined;
computer_use?: undefined;
hybrid_reasoning?: undefined;
extended_thinking?: undefined;
fast?: undefined;
advancedReasoning?: undefined;
reasoning: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
open_source: boolean;
};
})[]>;
getModelCapabilities(modelName: any): {
reasoning: any;
hybrid_reasoning: any;
extended_thinking: any;
function_calling: any;
json_mode: boolean;
multimodal: any;
largeContext: any;
advancedReasoning: any;
effort_parameter: any;
awsManaged: boolean;
};
validateModelAvailability(modelName: any): Promise<{
available: boolean;
model: any;
capabilities: {
reasoning: boolean;
hybrid_reasoning: boolean;
extended_thinking: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
effort_parameter: boolean;
agentic_coding?: undefined;
computer_use?: undefined;
fast?: undefined;
advancedReasoning?: undefined;
open_source?: undefined;
} | {
effort_parameter?: undefined;
reasoning: boolean;
hybrid_reasoning: boolean;
extended_thinking: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
agentic_coding: boolean;
computer_use: boolean;
fast?: undefined;
advancedReasoning?: undefined;
open_source?: undefined;
} | {
effort_parameter?: undefined;
agentic_coding?: undefined;
computer_use?: undefined;
reasoning: boolean;
hybrid_reasoning: boolean;
extended_thinking: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
fast: boolean;
advancedReasoning?: undefined;
open_source?: undefined;
} | {
effort_parameter?: undefined;
agentic_coding?: undefined;
computer_use?: undefined;
hybrid_reasoning?: undefined;
extended_thinking?: undefined;
fast?: undefined;
reasoning: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
advancedReasoning: boolean;
open_source?: undefined;
} | {
effort_parameter?: undefined;
agentic_coding?: undefined;
computer_use?: undefined;
hybrid_reasoning?: undefined;
extended_thinking?: undefined;
fast?: undefined;
advancedReasoning?: undefined;
reasoning: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
open_source?: undefined;
} | {
effort_parameter?: undefined;
agentic_coding?: undefined;
computer_use?: undefined;
hybrid_reasoning?: undefined;
extended_thinking?: undefined;
fast?: undefined;
advancedReasoning?: undefined;
reasoning: boolean;
function_calling: boolean;
json_mode: boolean;
multimodal: boolean;
open_source: boolean;
};
contextWindow: number;
alternatives?: undefined;
error?: undefined;
} | {
capabilities?: undefined;
contextWindow?: undefined;
available: boolean;
error: any;
alternatives: string[];
model?: undefined;
}>;
testConnection(): any;
}
declare const _default: any;
export default _default;