import { normalizeString } from './utils';
export const DEFAULT_BASE_URL = 'https://api.anthropic.com/v1';
// const ensureAnthropicApiKey = (): void => {
//   const apiKey = normalizeString(process.env.ANTHROPIC_API_KEY)
//   if (!apiKey) {
//     throw new Error('Anthropic provider requires the ANTHROPIC_API_KEY environment variable to be set')
//   }
// }
export const resolveBaseUrl = (options) => {
    return normalizeString(options.baseUrl) ?? DEFAULT_BASE_URL;
};
export const createAnthropicAgent = (options) => {
    console.log('Creating Anthropic agent with options:', options);
    // ensureAnthropicApiKey()
    const baseURL = resolveBaseUrl(options);
    return { baseURL, options };
};
