WiseAgentEvent
TODO
Source code in wiseagents/wise_agent_messaging.py
18 19 20 21 |
|
WiseAgentMessage
Bases: YAMLObject
A message that can be sent between agents.
Source code in wiseagents/wise_agent_messaging.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
chat_id: str
property
Get the id of the message.
context_name: str
property
Get the context name of the message.
message: str
property
Get the message contents (a natural language string).
message_type: WiseAgentMessageType
property
Get the type of the message (or None if the type was not specified).
route_response_to: str
property
Get the id of the tool.
sender: str
property
writable
Get the sender of the message (or None if the sender was not specified).
tool_id: str
property
Get the id of the tool.
__init__(message, sender=None, message_type=None, chat_id=None, tool_id=None, context_name=None, route_response_to=None)
Initialize the message.
Parameters: |
|
---|
Source code in wiseagents/wise_agent_messaging.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
WiseAgentTransport
Bases: YAMLObject
A transport for sending messages between agents.
Source code in wiseagents/wise_agent_messaging.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
|
error_receiver: Optional[Callable[[], WiseAgentMessage]]
property
Get the error receiver callback.
event_receiver: Optional[Callable[[], WiseAgentEvent]]
property
Get the event receiver callback.
request_receiver: Optional[Callable[[], WiseAgentMessage]]
property
Get the message receiver callback.
response_receiver: Optional[Callable[[], WiseAgentMessage]]
property
Get the response receiver callback.
send_request(message, dest_agent_name)
Send a request message to an agent.
Parameters: |
|
---|
Source code in wiseagents/wise_agent_messaging.py
123 124 125 126 127 128 129 130 131 132 |
|
send_response(message, dest_agent_name)
Send a request message to an agent.
Parameters: |
|
---|
Source code in wiseagents/wise_agent_messaging.py
134 135 136 137 138 139 140 141 142 143 |
|
set_call_backs(request_receiver=None, event_receiver=None, error_receiver=None, response_receiver=None)
Set the call back functions for the transport.
Parameters: |
|
---|
Source code in wiseagents/wise_agent_messaging.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
start()
Start the transport.
Source code in wiseagents/wise_agent_messaging.py
116 117 118 119 120 121 |
|
stop()
Stop the transport.
Source code in wiseagents/wise_agent_messaging.py
145 146 147 148 149 150 |
|