PubMindAgent class

Constructors

PubMindAgent({required String apiKey, String model = 'gpt-4o-mini', double temperature = 0.5, int maxIterations = 100, int maxTokens = 4096, List<Tool<Object, ToolOptions, Object>> tools = const [], Logger? logger})

Properties

apiKey → String
final
conversationHistory → List<ChatMessage>
no setter
hashCode → int
The hash code for this object.
no setterinherited
iterationCount → int
no setter
maxIterations → int
final
maxTokens → int
final
model → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
temperature → double
final
tools → List<Tool<Object, ToolOptions, Object>>
final

Methods

clearHistory() → void
execute({required String task, required String systemPrompt, Map<String, dynamic>? context}) → Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited