Skip to content

Commit e9928d1

Browse files
Merge pull request #22 from stainless-sdks/main--merge-conflict
⚠️ Update blocked by conflict
2 parents 34a5dd6 + c135237 commit e9928d1

File tree

1 file changed

+35
-0
lines changed
  • examples/tutorials/00_sync/000_hello_acp

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,42 @@
11
# [Sync] Hello ACP
22

33
This is a simple AgentEx agent that just says hello and acknowledges the user's message to show which ACP methods need to be implemented for the sync ACP type.
4+
The simplest agent type: synchronous request/response pattern with a single `@acp.on_message_send` handler. Best for stateless operations that complete immediately.
45

56
## Official Documentation
67

8+
## Prerequisites
9+
- Development environment set up (see [main repo README](https://github.com/scaleapi/scale-agentex))
10+
- Backend services running: `make dev` from repository (agentex) root
11+
12+
## Quick Start
13+
14+
```bash
15+
cd examples/tutorials/00_sync/000_hello_acp
16+
uv run agentex agents run --manifest manifest.yaml
17+
```
18+
19+
## Key Code
20+
21+
```python
22+
@acp.on_message_send
23+
async def handle_message_send(params: SendMessageParams):
24+
return TextContent(
25+
author="agent",
26+
content=f"Echo: {params.content.content}"
27+
)
28+
```
29+
30+
That's it - one handler, immediate response. No task creation, no state management.
31+
32+
## When to Use
33+
- Simple chatbots with no memory requirements
34+
- Quick Q&A or information lookup agents
35+
- Prototyping and testing agent responses
36+
- Operations that complete in under a second
37+
38+
## Why This Matters
39+
Sync agents are the simplest way to get started with AgentEx. They're perfect for learning the basics and building stateless agents. Once you need conversation memory or task tracking, you'll graduate to agentic agents.
40+
41+
**Next:** [010_multiturn](../010_multiturn/) - Add conversation memory to your agent
742
[000 Hello ACP](https://dev.agentex.scale.com/docs/tutorials/sync/000_hello_acp)

0 commit comments

Comments
 (0)