Architecture patterns¶
A useful service map starts with one request. For a toy chat assistant, a person sends a message, the agent calls a model, and the result goes back to the chat. The agent may fetch data from a tool if the request needs it.
| Boundary | Question to answer |
|---|---|
| Person to chat | Who can see the input and response? |
| Agent to model | Which parts of the conversation does the model receive? |
| Agent to tool | Which action can the agent take? How do you approve it? |
| Service to storage | What data survives a restart? How can you restore it? |
Use the map to decide which dependencies to test. Start an agent with a sample conversation and simulate one unavailable dependency. Check that the error tells the user what failed and whether they can retry.