Skip to content

Wapper for Existing Agents #22

Description

@hantsy

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. 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions