/evaluate-openai:evaluate-openaifrom evaluate-openai
Sets up evaluation of OpenAI Java SDK agents using Dokimos, focusing on tool call correctness, task completion, and argument hallucination assessment.
Ships in evaluate-openai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Set up Dokimos agent evaluation for an agent built directly on the OpenAI Java SDK (com.openai:openai-java). The user will describe their agent and evaluation goals via $ARGUMENTS.
dev.dokimos:dokimos-openai (dev.dokimos.openai.OpenAiSupport)dokimos-examples/src/main/java/dev/dokimos/examples/basic/OpenAIAgentEvaluationExample.javadokimos-core/src/main/java/dev/dokimos/core/agents/ and .../evaluators/agents/Add the dev.dokimos:dokimos-openai dependency (it brings in dokimos-core). It expects you to supply your own com.openai:openai-java version.
OpenAiSupport converts the SDK's tool calls into Dokimos ToolCalls and tool definitions:
toAgentTrace(ChatCompletionMessage message, Function<String,String> resultLookup): a full trace from a message; resultLookup maps a tool-call id to its result. Non-function (custom) tool calls are skipped.toToolCall(ChatCompletionMessageToolCall toolCall, String result): one function tool call plus the result you got from executing it.toToolCalls(ChatCompletionMessage message, Function<String,String> resultLookup): all function tool calls on a message.toToolDefinitions(List<ChatCompletionTool> tools): the tools the agent was given, so the validity and reliability evaluators can run.Arguments are parsed from the model's JSON; if they cannot be parsed they default to an empty map rather than failing the trace.
AgentTrace.Builder trace = AgentTrace.builder();
for (int i = 0; i < MAX_TURNS; i++) {
var message = client.chat().completions().create(params).choices().get(0).message();
var toolCalls = message.toolCalls().orElse(List.of());
if (toolCalls.isEmpty()) {
trace.finalResponse(message.content().orElse(""));
break;
}
for (var toolCall : toolCalls) {
String result = executeTool(toolCall.asFunction().function().name());
trace.addToolCall(OpenAiSupport.toToolCall(toolCall, result));
// feed the result back to the model as a tool message, then continue the loop
}
}
AgentTrace agentTrace = trace.build();
List<ToolDefinition> tools = List.of(
ToolDefinition.of("search_flights", "Search for flights", Map.of(
"type", "object",
"properties", Map.of("origin", Map.of("type", "string")),
"required", List.of("origin")))
);
EvalTestCase testCase = agentTrace.toTestCase("Find flights from NYC to Paris", tools);
var validity = ToolCallValidityEvaluator.builder().build().evaluate(testCase);
var correctness = ToolCorrectnessEvaluator.builder().build().evaluate(testCase);
$ARGUMENTS what the agent does and which tools (functions) it exposes.dev.dokimos:dokimos-openai dependency if it is not already present.OpenAiSupport.toToolCall(...) and set the final response.ToolDefinition for each function (JSON Schema with "type", "properties", "required") so the validity and reliability evaluators can run.trace.toTestCase(input, tools) and run the agent evaluators. Start with the deterministic ones (validity, correctness), then add LLM-based ones.evaluate-agent skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
openai-evaluation, agent-testing, dokimos, function-calling, java-sdk
npx claudepluginhub dokimos-dev/dokimos --plugin evaluate-openaiOther plugins' skills for the same job