agent_chats
langroid/parsing/agent_chats.py
parse_message(msg)
¶
Parse the intended recipient and content of a message.
Message format is assumed to be TO[
Parameters:
Name | Type | Description | Default |
---|---|---|---|
msg
|
str
|
message to parse |
required |
Returns:
Type | Description |
---|---|
Tuple[str, str]
|
str, str: task-name of intended recipient, and content of message (if recipient is not specified, task-name is empty string) |