Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

Fix the README section about the Python agent (#104)

Jaana Dogan423549a5409b
diff --git a/README.md b/README.md
index a916178..a72f643 100644
--- a/README.md
+++ b/README.md
@@ -456,15 +456,15 @@ python python/example_agent.py
# Register the agent (in another terminal)
ax register \
--server localhost:8494 \
- --agent-id "text-processing-agent" \
- --agent-name "Text Processing Agent" \
- --agent-description "An agent that processes text to lower or upper case the inputs." \
+ --agent-id "echo-agent" \
+ --agent-name "Echo Agent" \
+ --agent-description "An agent that echoes the input." \
--agent-addr localhost:50051
ax exec \
--server localhost:8494 \
--id task123 \
- --input "Hello, can you uppercase what I just said?"
+ --input "Hello, can you echo what I just said?"
```
## License
diff --git a/python/example_agent.py b/python/example_agent.py
index 0f29b00..97a8404 100644
--- a/python/example_agent.py
+++ b/python/example_agent.py
@@ -16,7 +16,7 @@
"""
Example Python agent using the AX.
-This demonstrates a simple agent that uppercases input text.
+This demonstrates a simple agent that echoes the input.
"""
from ax import Agent
@@ -33,7 +33,7 @@ def process(execution_id, inputs):
pb2.Content(
role="assistant",
text=pb2.TextContent(
- text=f"Python processed (execution {execution_id}): {content.text.text.upper()}"
+ text=f"Echoed (in execution {execution_id}): {content.text.text}"
)
)
]