|
|
@ -106,7 +106,7 @@
|
|
|
|
" def from_llm(cls, llm: BaseLLM, verbose: bool = True) -> LLMChain:\n",
|
|
|
|
" def from_llm(cls, llm: BaseLLM, verbose: bool = True) -> LLMChain:\n",
|
|
|
|
" \"\"\"Get the response parser.\"\"\"\n",
|
|
|
|
" \"\"\"Get the response parser.\"\"\"\n",
|
|
|
|
" task_creation_template = (\n",
|
|
|
|
" task_creation_template = (\n",
|
|
|
|
" \"You are an task creation AI that uses the result of an execution agent\"\n",
|
|
|
|
" \"You are a task creation AI that uses the result of an execution agent\"\n",
|
|
|
|
" \" to create new tasks with the following objective: {objective},\"\n",
|
|
|
|
" \" to create new tasks with the following objective: {objective},\"\n",
|
|
|
|
" \" The last completed task has the result: {result}.\"\n",
|
|
|
|
" \" The last completed task has the result: {result}.\"\n",
|
|
|
|
" \" This result was based on this task description: {task_description}.\"\n",
|
|
|
|
" \" This result was based on this task description: {task_description}.\"\n",
|
|
|
@ -141,7 +141,7 @@
|
|
|
|
" def from_llm(cls, llm: BaseLLM, verbose: bool = True) -> LLMChain:\n",
|
|
|
|
" def from_llm(cls, llm: BaseLLM, verbose: bool = True) -> LLMChain:\n",
|
|
|
|
" \"\"\"Get the response parser.\"\"\"\n",
|
|
|
|
" \"\"\"Get the response parser.\"\"\"\n",
|
|
|
|
" task_prioritization_template = (\n",
|
|
|
|
" task_prioritization_template = (\n",
|
|
|
|
" \"You are an task prioritization AI tasked with cleaning the formatting of and reprioritizing\"\n",
|
|
|
|
" \"You are a task prioritization AI tasked with cleaning the formatting of and reprioritizing\"\n",
|
|
|
|
" \" the following tasks: {task_names}.\"\n",
|
|
|
|
" \" the following tasks: {task_names}.\"\n",
|
|
|
|
" \" Consider the ultimate objective of your team: {objective}.\"\n",
|
|
|
|
" \" Consider the ultimate objective of your team: {objective}.\"\n",
|
|
|
|
" \" Do not remove any tasks. Return the result as a numbered list, like:\"\n",
|
|
|
|
" \" Do not remove any tasks. Return the result as a numbered list, like:\"\n",
|
|
|
|