feat(brain): add agent messaging aliases
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
c58b9acb27
commit
be770992a1
2 changed files with 6 additions and 0 deletions
|
|
@ -25,6 +25,9 @@ func (s *DirectSubsystem) OnStartup(_ context.Context) core.Result {
|
|||
c.Action("message.send", s.handleSend).Description = "Send a direct message to another agent"
|
||||
c.Action("message.inbox", s.handleInbox).Description = "Read direct messages for an agent"
|
||||
c.Action("message.conversation", s.handleConversation).Description = "Read the conversation thread with another agent"
|
||||
c.Action("agent.send", s.handleSend).Description = "Send a direct message to another agent"
|
||||
c.Action("agent.inbox", s.handleInbox).Description = "Read direct messages for an agent"
|
||||
c.Action("agent.conversation", s.handleConversation).Description = "Read the conversation thread with another agent"
|
||||
return core.Result{OK: true}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,9 @@ func TestActions_OnStartup_Good(t *testing.T) {
|
|||
assert.True(t, c.Action("message.send").Exists())
|
||||
assert.True(t, c.Action("message.inbox").Exists())
|
||||
assert.True(t, c.Action("message.conversation").Exists())
|
||||
assert.True(t, c.Action("agent.send").Exists())
|
||||
assert.True(t, c.Action("agent.inbox").Exists())
|
||||
assert.True(t, c.Action("agent.conversation").Exists())
|
||||
}
|
||||
|
||||
func TestActions_HandleList_Good(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue