@openai/agents-core
Version:
The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.
32 lines (31 loc) • 1.36 kB
TypeScript
import { ModelSettings } from './model';
export declare const OPENAI_DEFAULT_MODEL_ENV_VARIABLE_NAME = "OPENAI_DEFAULT_MODEL";
/**
* Returns True if the model name is a GPT-5 model and reasoning settings are required.
*/
export declare function gpt5ReasoningSettingsRequired(modelName: string): boolean;
/**
* Identifies the GPT-5-and-newer settings family, excluding known chat aliases.
* Membership does not require a model-specific default reasoning effort.
*/
export declare function isGpt5OrNewerReasoningModel(modelName: string): boolean;
/**
* Returns whether the default model belongs to the GPT-5-and-newer settings family.
*/
export declare function isGpt5OrNewerDefault(): boolean;
/**
* Returns True if the default model is a GPT-5 model.
* This is used to determine if the default model settings are compatible with GPT-5 models.
* If the default model is not a GPT-5 model, the model settings are compatible with other models.
*/
export declare function isGpt5Default(): boolean;
/**
* Returns the default model name.
*/
export declare function getDefaultModel(): string;
/**
* Returns the default model settings.
* GPT-5-and-newer reasoning models receive model-specific defaults when known.
* Otherwise, returns the legacy default model settings.
*/
export declare function getDefaultModelSettings(model?: string): ModelSettings;