Skip to content

Commit

Permalink
Merge branch 'main' into intergrate-mem0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-Khant authored Oct 15, 2024
2 parents 6316936 + 725d159 commit b810697
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/concepts/agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Think of an agent as a member of a team, with specific skills and a particular j
| **Verbose** *(optional)* | `verbose` | Setting this to `True` configures the internal logger to provide detailed execution logs, aiding in debugging and monitoring. Default is `False`. |
| **Allow Delegation** *(optional)* | `allow_delegation` | Agents can delegate tasks or questions to one another, ensuring that each task is handled by the most suitable agent. Default is `False`.
| **Step Callback** *(optional)* | `step_callback` | A function that is called after each step of the agent. This can be used to log the agent's actions or to perform other operations. It will overwrite the crew `step_callback`. |
| gbv vbn zzdsxcdsdfc**Cache** *(optional)* | `cache` | Indicates if the agent should use a cache for tool usage. Default is `True`. |
| **Cache** *(optional)* | `cache` | Indicates if the agent should use a cache for tool usage. Default is `True`. |
| **System Template** *(optional)* | `system_template` | Specifies the system format for the agent. Default is `None`. |
| **Prompt Template** *(optional)* | `prompt_template` | Specifies the prompt format for the agent. Default is `None`. |
| **Response Template** *(optional)* | `response_template` | Specifies the response format for the agent. Default is `None`. |
Expand Down
3 changes: 2 additions & 1 deletion src/crewai/agents/agent_builder/utilities/base_agent_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def _execute(
task_with_assigned_agent = Task( # type: ignore # Incompatible types in assignment (expression has type "Task", variable has type "str")
description=task,
agent=agent,
expected_output="Your best answer to your coworker asking you this, accounting for the context shared.",
expected_output=agent.i18n.slice("manager_request"),
i18n=agent.i18n,
)
return agent.execute_task(task_with_assigned_agent, context)
2 changes: 1 addition & 1 deletion src/crewai/agents/crew_agent_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _invoke_loop(self, formatted_answer=None):
)
self.have_forced_answer = True
self.messages.append(
self._format_msg(formatted_answer.text, role="user")
self._format_msg(formatted_answer.text, role="assistant")
)

except OutputParserException as e:
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/crew/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from {{folder_name}}.crew import {{crew_name}}Crew

# This main file is intended to be a way for your to run your
# This main file is intended to be a way for you to run your
# crew locally, so refrain from adding necessary logic into this file.
# Replace with inputs you want to test with, it will automatically
# interpolate any tasks and agents information
Expand Down
3 changes: 2 additions & 1 deletion src/crewai/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"getting_input": "This is the agent's final answer: {final_answer}\n\n",
"summarizer_system_message": "You are a helpful assistant that summarizes text.",
"sumamrize_instruction": "Summarize the following text, make sure to include all the important information: {group}",
"summary": "This is a summary of our conversation so far:\n{merged_summary}"
"summary": "This is a summary of our conversation so far:\n{merged_summary}",
"manager_request": "Your best answer to your coworker asking you this, accounting for the context shared."
},
"errors": {
"force_final_answer_error": "You can't keep going, this was the best you could do.\n {formatted_answer.text}",
Expand Down

0 comments on commit b810697

Please sign in to comment.