MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / from_message

Method from_message

camel/tasks/task.py:101–110  ·  view source on GitHub ↗

r"""Create a task from a message. Args: message (BaseMessage): The message to the task. Returns: Task

(cls, message: BaseMessage)

Source from the content-addressed store, hash-verified

99
100 @classmethod
101 def from_message(cls, message: BaseMessage) -> "Task":
102 r"""Create a task from a message.
103
104 Args:
105 message (BaseMessage): The message to the task.
106
107 Returns:
108 Task
109 """
110 return cls(content=message.content, id="0")
111
112 @staticmethod
113 def to_message():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected