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

Method __init__

camel/agents/task_agent.py:147–166  ·  view source on GitHub ↗
(
        self,
        model: Optional[BaseModelBackend] = None,
        output_language: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

145 """
146
147 def __init__(
148 self,
149 model: Optional[BaseModelBackend] = None,
150 output_language: Optional[str] = None,
151 ) -> None:
152 self.task_planner_prompt = TextPrompt(
153 "Divide this task into subtasks: {task}. Be concise."
154 )
155 system_message = BaseMessage(
156 role_name="Task Planner",
157 role_type=RoleType.ASSISTANT,
158 meta_dict=None,
159 content="You are a helpful task planner.",
160 )
161
162 super().__init__(
163 system_message,
164 model=model,
165 output_language=output_language,
166 )
167
168 def run(
169 self,

Callers

nothing calls this directly

Calls 3

TextPromptClass · 0.90
BaseMessageClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected