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

Calling agents that have functions #65

Open
beddows opened this issue Sep 17, 2024 · 1 comment
Open

Calling agents that have functions #65

beddows opened this issue Sep 17, 2024 · 1 comment

Comments

@beddows
Copy link
Contributor

beddows commented Sep 17, 2024

  • I'm submitting a ...
    [?] bug report
    [?] question about how to use this project

  • Summary
    Hi @dosco ,
    This pattern isn't working for me:

const ai = new AxAI({name, apiKey});
ai.setOptions({ debug: true });

const agent1 = new AxAgent(ai, { name, description, signature, functions });
const agent2 = new AxAgent(ai, { name, description, signature, functions });

const agent = new AxAgent(ai, { name, description, signature, agents[agent1, agent2] });

It works if agent1 & agent2 don't have functions (like in the agent example). But if they do, they don't work. Either it's a bug or I'm misunderstanding something fundamental to agents.

As for signatures, I'm using something like:

signature1: agent1Request -> result "the result"
signature2: agent2Request -> result "the result"

signature: request -> result

Agent names and descriptions are detailed, distinct, and include proper parameters with the required property in their functions. Their functions return an empty result, since they're not called.

It works if I put all the functions in the main agent, but I'd rather use a modular approach to scale the function calling. This is with Anthropic.

@dosco
Copy link
Collaborator

dosco commented Sep 19, 2024

can you try the latest release and confirm there were some fixes.

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

2 participants