Class AgentEvalCase.Builder
java.lang.Object
dev.dokimos.core.evaluators.agents.AgentEvalCase.Builder
- Enclosing class:
AgentEvalCase
Builder for constructing an
EvalTestCase that targets the agent evaluators.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the test case, writing only the slots that were set.expectedToolCalls(List<ToolCall> expectedToolCalls) Sets the expected tool calls (the"toolCalls"key in expected outputs).Sets the primary input value (the"input"key).Sets the tasks the agent was asked to complete (the"tasks"key in metadata).Sets the actual tool calls the agent made (the"toolCalls"key in actual outputs).tools(List<ToolDefinition> tools) Sets the tools available to the agent (the"tools"key in metadata).
-
Method Details
-
input
Sets the primary input value (the"input"key).- Parameters:
input- the input value- Returns:
- this builder
-
toolCalls
Sets the actual tool calls the agent made (the"toolCalls"key in actual outputs).- Parameters:
toolCalls- the tool calls- Returns:
- this builder
-
tools
Sets the tools available to the agent (the"tools"key in metadata).- Parameters:
tools- the tool definitions- Returns:
- this builder
-
expectedToolCalls
Sets the expected tool calls (the"toolCalls"key in expected outputs).- Parameters:
expectedToolCalls- the expected tool calls- Returns:
- this builder
-
tasks
Sets the tasks the agent was asked to complete (the"tasks"key in metadata).- Parameters:
tasks- the task descriptions- Returns:
- this builder
-
build
Builds the test case, writing only the slots that were set.- Returns:
- a new test case populated with the keys the agent evaluators read
-