Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.akka</groupId>
<artifactId>akka-javasdk-parent</artifactId>
<version>3.5.0</version>
<version>3.5.1</version>
</parent>

<groupId>io.akka.ai</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
An agent that acts as an LLM judge to evaluate the quality of AI responses.
It assesses whether the final answer is appropriate for the original question
and checks for any deviations from user preferences.
""",
role = "worker"
"""
)
public class EvaluatorAgent extends Agent {

Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ akka.javasdk {
# Other AI models can be configured, see https://doc.akka.io/java/agents.html#model
# and https://doc.akka.io/java/model-provider-details.html for the reference configurations.
model-provider = openai
# model-provider = googleai-gemini

openai {
model-name = "gpt-4o-mini"
# Environment variable override for the API key
api-key = ${?OPENAI_API_KEY}
}

googleai-gemini {
model-name = "gemini-2.5-flash"
api-key = ${?GOOGLE_AI_GEMINI_API_KEY}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ protected TestKit.Settings testKitSettings() {
// We don't need a real one though.
return TestKit.Settings.DEFAULT.withAdditionalConfig(
ConfigFactory.parseString("akka.javasdk.agent.openai.api-key=fake-key")
).withWorkflowIncomingMessages("agent-team");
).withWorkflowIncomingMessages(AgentTeamWorkflow.class);
}

@Test
public void shouldHandleMultipleSessionsForSameUser() {
var workflowMessages = testKit.getWorkflowIncomingMessages("agent-team");
var workflowMessages = testKit.getWorkflowIncomingMessages(AgentTeamWorkflow.class);

var userId = "alice";

Expand Down Expand Up @@ -102,7 +102,7 @@ public void shouldReturnEmptyForNonExistentUser() {

@Test
public void shouldFilterActivitiesByUserId() {
var workflowMessages = testKit.getWorkflowIncomingMessages("agent-team");
var workflowMessages = testKit.getWorkflowIncomingMessages(AgentTeamWorkflow.class);

// Activity for user bob
var aliceState = new AgentTeamWorkflow.State(
Expand Down
Loading