Skip to content

Commit 9c8196f

Browse files
committed
Merge branch 'main' of github.com:Lancetnik/a2a-samples
2 parents 8b10786 + 6994cfc commit 9c8196f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

samples/python/agents/ag2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AG2 Mypy tool Agent with A2A Protocol
22

3-
This sample demonstrates an AG2 agent that is exposed through the A2A protocol. It shows how an AG2 can communicate using A2A as a lingua franca. I think it could be helpful for building a distributed agent system where different agents can communicate with each other using the A2P protocol. The agent-as-a-service architecture allows you to encapsulate agent logic, the local environment, tools, and other capabilities into a separate service that can be reused in different agent workflows.
3+
This sample demonstrates an AG2 agent that is exposed through the A2A protocol. It shows how an AG2 can communicate using A2A as a lingua franca, which is helpful for building a distributed agent system where different agents can communicate with each other using the A2A protocol. The agent-as-a-service architecture allows you to encapsulate agent logic, the local environment, tools, and other capabilities into a separate service that can be reused in different agent workflows.
44

55
Here is a sequence diagram that shows how the current demo implementation of the A2A protocol works:
66

@@ -71,7 +71,7 @@ Here we have a simple demo that shows how to use the A2A protocol to communicate
7171
uv run a2a_python_reviewer.py
7272
```
7373

74-
4. In a new terminal, start an A2AClient interface to interact with the remote (ag2) agent. You can use one of the following clients:
74+
5. In a new terminal, start an A2AClient interface to interact with the remote (ag2) agent. You can use one of the following clients:
7575

7676
- **Method A: Run the CLI client**
7777

samples/python/agents/ag2/a2a_python_reviewer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919
reviewer_agent = ConversableAgent(
2020
name='ReviewerAgent',
21-
description='A agent that reviews the code for the user',
21+
description='An agent that reviews the code for the user',
2222
system_message=(
23-
'You are a expert in code review pretty strict and focused on typing. '
23+
'You are an expert in code review pretty strict and focused on typing. '
2424
'Please, use mypy tool to validate the code.'
2525
'If mypy has no issues with the code, return "No issues found."'
2626
),

samples/python/agents/ag2/cli_codegen_a2a_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
name='CodeGenAgent',
1616
description='A agent that generates code for the user',
1717
system_message=(
18-
'You are specialist in Python with huge Clear Architecture experience. '
18+
'You are specialist in Python with huge Clean Architecture experience. '
1919
'Also, you are an expert in argparse. '
2020
'You should create a simple scripts based on user demands. '
2121
'Generate code in a single file. Do not use any other files. '
@@ -40,7 +40,7 @@ async def main() -> str:
4040
# use A2A agent as regular one
4141
result = await reviewer_agent.a_initiate_chat(
4242
codegen_agent,
43-
message='Please, generate a simple script, allows to trunsfer USD to EUR using any external API.',
43+
message='Please, generate a simple script, allows to transfer USD to EUR using any external API.',
4444
)
4545
return result.chat_history[-2]['content']
4646

samples/python/agents/ag2/fastapi_codegen_a2a_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
name='CodeGenAgent',
1616
description='A agent that generates code for the user',
1717
system_message=(
18-
'You are specialist in Python with huge Clear Architecture experience. '
18+
'You are specialist in Python with huge Clean Architecture experience. '
1919
'Also, you are an expert in FastAPI. '
20-
'Please, focus on REST-full API principles while API design. '
20+
'Please, focus on RESTful API principles while API design. '
2121
'Generate code in a single file. Do not use any other files. '
2222
'Generate just a code, no other text or comments. '
2323
'Terminate conversation when reviewer agent has no issues with the code.'

0 commit comments

Comments
 (0)