Hi I am developing an Agent, and I am using the Agent Client to test it.
The test is here: https://github.com/lordofthejars-ai/galaxium-travels/blob/main/incidence-response-agent/src/test/java/org/acme/incidence/IncidenceResponseAgentTest.java
And the Agent declaration is at https://github.com/lordofthejars-ai/galaxium-travels/blob/main/incidence-response-agent/src/main/java/org/acme/incidence/IncidenceResponseAgentExecutorProducer.java
Then currently the example is working because I am using the agentEmitter.sendMessage(parts); method at the agent, but if you look at the agent execute method you'll see some code commented:
if (context.getTask() == null) {
agentEmitter.submit();
}
agentEmitter.startWork();
agentEmitter.addArtifact(parts);
agentEmitter.complete();
And I comment the sendMessage method, then when I run the test, I got an exception that the request has been cancelled. Now I am not sure why I am getting this exception if I am not cancelling anything.
Thank you very much for your help, to reproduce the issue you only need to run the test. All it is self contained.
Thank you very much.
Hi I am developing an Agent, and I am using the Agent Client to test it.
The test is here: https://github.com/lordofthejars-ai/galaxium-travels/blob/main/incidence-response-agent/src/test/java/org/acme/incidence/IncidenceResponseAgentTest.java
And the Agent declaration is at https://github.com/lordofthejars-ai/galaxium-travels/blob/main/incidence-response-agent/src/main/java/org/acme/incidence/IncidenceResponseAgentExecutorProducer.java
Then currently the example is working because I am using the
agentEmitter.sendMessage(parts);method at the agent, but if you look at the agent execute method you'll see some code commented:And I comment the
sendMessagemethod, then when I run the test, I got an exception that the request has been cancelled. Now I am not sure why I am getting this exception if I am not cancelling anything.Thank you very much for your help, to reproduce the issue you only need to run the test. All it is self contained.
Thank you very much.