WiseAgentEvent
TODO
Source code in wiseagents/wise_agent_messaging.py
22 23 24 25 |
|
WiseAgentMessage
Bases: YAMLObject
A message that can be sent between agents.
Source code in wiseagents/wise_agent_messaging.py
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 96 97 98 99 100 101 102 103 104 105 106 107 |
|
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, context_name, sender=None, message_type=None, tool_id=None, route_response_to=None)
Initialize the message.
Parameters: |
|
---|
Source code in wiseagents/wise_agent_messaging.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
WiseAgentTransport
Bases: WiseAgentsYAMLObject
Source code in wiseagents/wise_agent_messaging.py
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 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
|
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.
__getstate__()
Return the state of the transport. Removing the instance variable chain to avoid it is serialized/deserialized by pyyaml.
Source code in wiseagents/wise_agent_messaging.py
132 133 134 135 136 137 138 139 |
|
send_request(message, dest_agent_name)
Send a request message to an agent.
Parameters: |
|
---|
Source code in wiseagents/wise_agent_messaging.py
149 150 151 152 153 154 155 156 157 158 |
|
send_response(message, dest_agent_name)
Send a request message to an agent.
Parameters: |
|
---|
Source code in wiseagents/wise_agent_messaging.py
160 161 162 163 164 165 166 167 168 169 |
|
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
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
start()
Start the transport.
Source code in wiseagents/wise_agent_messaging.py
142 143 144 145 146 147 |
|
stop()
Stop the transport.
Source code in wiseagents/wise_agent_messaging.py
171 172 173 174 175 176 |
|