simple
simple
¶
SimpleAgent — single-turn query-to-response agent (no tool calling).
Classes¶
SimpleAgent
¶
SimpleAgent(
engine: InferenceEngine,
model: str,
*,
bus: Optional[EventBus] = None,
temperature: Optional[float] = None,
max_tokens: Optional[int] = None,
prompt_builder: Optional[Any] = None,
)
Bases: BaseAgent
Single-turn agent: query -> model -> response. No tool calling.
Source code in src/diapason/agents/_stubs.py
Methods:¶
run
¶
run(
input: str,
context: Optional[AgentContext] = None,
**kwargs: Any,
) -> AgentResult
Single-turn: build messages, call engine, return result.