PubMindAgent constructor
PubMindAgent({})
Implementation
PubMindAgent({
required this.apiKey,
this.model = 'gpt-4o-mini',
this.temperature = 0.5,
this.maxIterations = 100,
this.maxTokens = 4096,
this.tools = const [],
Logger? logger,
}) : _logger = logger ?? Logger() {
_llm = ChatOpenAI(
apiKey: apiKey,
defaultOptions: ChatOpenAIOptions(
model: model,
temperature: temperature,
maxTokens: maxTokens,
tools: tools,
),
);
}