mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
WIP
This commit is contained in:
@@ -120,21 +120,21 @@ class LiteAgent(BaseModel):
|
|||||||
"""Get the default system prompt for the agent."""
|
"""Get the default system prompt for the agent."""
|
||||||
prompt = f"""You are a helpful AI assistant acting as {self.role}.
|
prompt = f"""You are a helpful AI assistant acting as {self.role}.
|
||||||
|
|
||||||
Your goal is: {self.goal}
|
Your goal is: {self.goal}
|
||||||
|
|
||||||
Your backstory: {self.backstory}
|
Your backstory: {self.backstory}
|
||||||
|
|
||||||
When using tools, follow this format:
|
When using tools, follow this format:
|
||||||
Thought: I need to use a tool to help with this task.
|
Thought: I need to use a tool to help with this task.
|
||||||
Action: tool_name
|
Action: tool_name
|
||||||
Action Input: {{
|
Action Input: {{
|
||||||
"parameter1": "value1",
|
"parameter1": "value1",
|
||||||
"parameter2": "value2"
|
"parameter2": "value2"
|
||||||
}}
|
}}
|
||||||
Observation: [Result of the tool execution]
|
Observation: [Result of the tool execution]
|
||||||
|
|
||||||
When you have the final answer, respond directly without the above format.
|
When you have the final answer, respond directly without the above format.
|
||||||
"""
|
"""
|
||||||
return prompt
|
return prompt
|
||||||
|
|
||||||
def _format_tools_description(self) -> str:
|
def _format_tools_description(self) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user