Currently, if this spec focuses on Agent definition, we have to face a problem: how to call the existing agents that do not exist in the form of this spec, such as the existing GitHub Copilot, Google Gemini, etc., all of which provide agent services instead of simple chat/prompt operations.
For example, we define an agent using this spec. In the @Outcome step, we want to call the Gemini agent, but it is not defined in our projects. Is it possible to use a simple helper API to wrap the existing Agents as CDI beans within the Jakarta EE system?
@Produces
AgentService geminiService() {
// AgentService.of(....)
// it is could be GeminiAgentSerice.of(...) in an impl
}
// @Inject AgentService geminiService in other CDI beans.
Currently, if this spec focuses on Agent definition, we have to face a problem: how to call the existing agents that do not exist in the form of this spec, such as the existing GitHub Copilot, Google Gemini, etc., all of which provide agent services instead of simple chat/prompt operations.
For example, we define an agent using this spec. In the
@Outcomestep, we want to call the Gemini agent, but it is not defined in our projects. Is it possible to use a simple helper API to wrap the existing Agents as CDI beans within the Jakarta EE system?