Skip to content

Commit

Permalink
Specify well known topic types for direct agent channel (#4390)
Browse files Browse the repository at this point in the history
* Specify well known topic types for direct agent channel

* casing

---------

Co-authored-by: Ryan Sweet <[email protected]>
  • Loading branch information
jackgerrits and rysweet authored Nov 27, 2024
1 parent 0d3bc94 commit a6ccb6f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/design/02 - Topics.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,16 @@ Agents are able to handle certain types of messages. This is an internal detail

> [!NOTE]
> This might be revisited based on scaling and performance considerations.
## Well known topic types

Agents should subscribe via a prefix subscription to the `{AgentType}:` topic as a direct message channel for the agent type.

For this subscription source should map directly to agent key.

This subscription will therefore receive all events for the following well known topics:

- `{AgentType}:` - General purpose direct messages. These should be routed to the approriate message handler.
- `{AgentType}:rpc_request` - RPC request messages. These should be routed to the approriate RPC handler.
- `{AgentType}:rpc_response={RequestId}` - RPC response messages. These should be routed back to the response future of the caller.
- `{AgentType}:error={RequestId}` - Error message that corresponds to the given request.

0 comments on commit a6ccb6f

Please sign in to comment.