I have a custom tool that calls some CRM API. The tool has a single parameter people
with each record have the first name, last name, and email address of a person, like this:
[
{email: "you@mail.com", firstname: "You", lastname: "LastName"},
{email: "you2@mail.com", firstname: "You2", lastname: "LastName"},
...
]
If I put the array just like that as an "example" in the people
parameter and call the tool manually (by triggering each node individually), it works properly. However, when the agent calls the tool, it fails.
Looking at the logs, it appears that it's formulating the argument correctly, at least I see an array of JSON objects in the logs that have the correct schema. But when I look at the CRM logs for the request, it appears that whatever is actually being passed into the people
argument is an array of the correct size but the members of the array can't be correct (otherwise it would be working properly).
What's going on here?