Skip to content

Commit

Permalink
Adjusted tool instructions and responses
Browse files Browse the repository at this point in the history
  • Loading branch information
VRSEN committed Jan 25, 2024
1 parent 3825d7c commit 4e1a95c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agency_swarm/agency/agency.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ThreadsCallbacks(TypedDict):
class Agency:
ThreadType = Thread
send_message_tool_description = """Use this tool for synchronous communication with other agents within your agency. For ongoing dialogue, resend messages to specific agents. Communication is synchronous, without post-response tasks. Relay agent responses to the user, who lacks direct access. Continue using the tool for continuous interaction until task completion."""
send_message_tool_description_async = """Use this tool for asynchronous communication with other agents within your agency. Initiate tasks by messaging, and check status and responses with the 'GetResponse' tool. Relay responses to the user, who instructs on status checks. Continue until task completion."""
send_message_tool_description_async = """Use this tool for asynchronous communication with other agents within your agency. Initiate tasks by messaging, and check status and responses later with the 'GetResponse' tool. Relay responses to the user, who instructs on status checks. Continue until task completion."""

def __init__(self, agency_chart: List, shared_instructions: str = "", shared_files: List = None,
async_mode: Literal['threading'] = None,
Expand Down
2 changes: 1 addition & 1 deletion agency_swarm/threads/thread_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_completion_async(self, message: str, message_files=None):

self.pythread.start()

return "System Notification: 'Task has started. Please notify the user that they can tell you to check the status later. You can do this with the 'GetResponse' tool, but don't mention this tool to the user. "
return "System Notification: 'Task has started. Please notify the user that they can tell you to check the status later. You can do this with the 'GetResponse' tool, after you have been instructed to do so. Don't mention the tool itself to the user. "

def check_status(self, run=None):
if not run:
Expand Down

0 comments on commit 4e1a95c

Please sign in to comment.