Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

Java Spring Apache Tomcat Apache Maven ChatGPT JSON GitHub Actions Docker IntelliJ IDEA

    

    

Generated agent

Java agent repository generated by the Embabel project creator.

Starting point for your own agent development using the Embabel framework.

Add your magic here!

Illustrates:

  • An injected demo showing how any Spring component can be injected with an Embabel Ai instance to enable it to perform LLM operations.
  • A simple agent
  • Unit tests for an agent verifying prompts and hyperparameters

To run

Run the shell script to start Embabel under Spring Shell:

./scripts/shell.sh

There is a single example agent, WriteAndReviewAgent. It uses one LLM with a high temperature and creative persona to write a story based on your input, then another LLM with a low temperature and different persona to review the story.

When the Embabel shell comes up, use the story agent like this:

x "Tell me a story about...[your topic]"

Try the InjectedDemo command to see simple, non-agent use:

animal

A2A Support

Embabel integrates with the A2A protocol, allowing you to connect to other A2A-enabled agents and services.

Embabel agents can be exposed to A2A with zero developer effort.

Check out the a2a branch of this repository to try A2A support.

You'll need the following environment variable:

  • GOOGLE_STUDIO_API_KEY: Your Google Studio API key, which is used for Gemini.

Start the Google A2A web interface using Docker compose:

docker compose up

Go to the web interface running within the container at http://localhost:12000/.

Connect to your agent at host.docker.internal:8080/a2a. Note that localhost:8080/a2a won't work as the server cannot access it when running in a Docker container.

Your agent will have automatically been exported to A2A. Add it in the UI, and start a chat. You should see something like this:

A2A UI

Contributors

Embabel contributors

About

Java agent template

Resources

Code of conduct

Stars

147 stars

Watchers

9 watching

Forks

Releases

Packages

Contributors

Languages