============== 辅助函数 ============== AgentActorTell 向 Agent Actor 发送消息(不等待响应)
(pid *actor.PID, msg actor.Message)
| 530 | |
| 531 | // AgentActorTell 向 Agent Actor 发送消息(不等待响应) |
| 532 | func AgentActorTell(pid *actor.PID, msg actor.Message) { |
| 533 | pid.Tell(msg) |
| 534 | } |
| 535 | |
| 536 | // AgentActorChat 向 Agent Actor 发送对话请求并等待响应 |
| 537 | func AgentActorChat(pid *actor.PID, text string, timeout time.Duration) (*ChatResultMsg, error) { |