Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consult_directory does not provide location of the agents, while the tool description says it does #91

Open
bent-verbiage opened this issue Aug 12, 2023 · 0 comments

Comments

@bent-verbiage
Copy link

It seems this tool was refactored, but now causes issues because the location is not provided (whereas the description says it does): The agents don't know where to go, and often get stuck in "waiting for events" mode.

def consult_directory(
    tool_context: ToolContext,
    agent_input: str = None,
):
    """Shows a list of all agents and their current locations"""

    # first, craft the event object
    agents = tool_context.context.agents

    directory = ""

    for index, agent in enumerate(agents):
        if agent["id"] == tool_context.agent_id:
            continue

        directory += (
            f"{agent['full_name']}\n"
            f"---------------------\n"
            f"Bio: {agent['public_bio']}\n"
            f"---------------------\n\n"
        )

    return directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant