|
16 | 16 |
|
17 | 17 | |
18 | 18 |
|
19 | | -# Generated agent |
20 | | - |
21 | | -Java agent repository generated by the Embabel project creator. |
22 | | - |
23 | | -Starting point for your own agent development using the [Embabel framework](https://github.com/embabel/embabel-agent). |
24 | | - |
25 | | -Add your magic here! |
26 | | - |
27 | | -Illustrates: |
28 | | - |
29 | | -- An injected demo showing how any Spring component can be injected with an Embabel `Ai` instance to enable it to |
30 | | - perform LLM operations. |
31 | | -- A simple agent |
32 | | -- Unit tests for an agent verifying prompts and hyperparameters |
33 | | - |
34 | | -# To run |
35 | | - |
36 | | -Run the shell script to start Embabel under Spring Shell: |
37 | | - |
38 | | -```bash |
39 | | -./scripts/shell.sh |
40 | | -``` |
41 | | - |
42 | | -There is a single example agent, `WriteAndReviewAgent`. |
43 | | -It uses one LLM with a high temperature and creative persona to write a story based on your input, |
44 | | -then another LLM with a low temperature and different persona to review the story. |
45 | | - |
46 | | -When the Embabel shell comes up, use the story agent like this: |
47 | | - |
48 | | -``` |
49 | | -x "Tell me a story about...[your topic]" |
50 | | -``` |
51 | | - |
52 | | -Try the `InjectedDemo` command to see simple, non-agent use: |
53 | | - |
54 | | -```java |
55 | | -animal |
56 | | -``` |
57 | | - |
58 | | -## A2A Support |
59 | | - |
60 | | -Embabel integrates with the [A2A](https://github.com/google-a2a/A2A) protocol, allowing you to connect to other |
61 | | -A2A-enabled agents and |
62 | | -services. |
63 | | - |
64 | | -> Embabel agents can be exposed to A2A with zero developer effort. |
65 | | -
|
66 | | -Check out the `a2a` branch of this repository to try A2A support. |
67 | | - |
68 | | -You'll need the following environment variable: |
69 | | - |
70 | | -- `GOOGLE_STUDIO_API_KEY`: Your Google Studio API key, which is used for Gemini. |
71 | | - |
72 | | -Start the Google A2A web interface using Docker compose: |
73 | | - |
74 | | -```bash |
75 | | -docker compose up |
76 | | -``` |
77 | | - |
78 | | -Go to the web interface running within the container at `http://localhost:12000/`. |
79 | | - |
80 | | -Connect to your agent at `host.docker.internal:8080/a2a`. Note that `localhost:8080/a2a` won't work as the server |
81 | | -cannot access it when running in a Docker container. |
82 | | - |
83 | | -Your agent will have automatically been exported to A2A. Add it in the UI, and start a chat. |
84 | | -You should see something like this: |
85 | | - |
86 | | -<img src="images/a2a_ui.jpg" alt="A2A UI" width="600"> |
87 | | - |
88 | | -## Contributors |
89 | | - |
90 | | -[](https://github.com/embabel/java-agent-template/graphs/contributors) |
91 | | - |
| 19 | +# Talk to the Docs |
0 commit comments