crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Accessing input information in Tools

Open dudesparsh opened this issue 1 year ago • 1 comments

I'm trying to pass input information to my crew, but I'm having trouble accessing those inputs within my tool.

When I include these variables in prompts (goals) or descriptions, I can access them inside my tool. However, I prefer not to mention the inputs in the prompt and still access them within my tool.

Can anyone suggest the right way to achieve this? Do agents or tasks have the functionality to take inputs or configurations directly, similar to how it's done in crews?

Thank you.

dudesparsh avatar Jul 23 '24 06:07 dudesparsh

+1

And I would like to access a crew input in a Task callback function without to pass through task prompt.

Context:

I have a callback function that creates a file with the contents of a task output. However, the file name needs to contain a string that is passed as input to the Crew.

The task runs normally, but when I save the file in the callback function, I can't access the Crew input.

I've create a new issue with my code and examples here https://github.com/crewAIInc/crewAI/issues/1027

carvalhorafael avatar Jul 29 '24 13:07 carvalhorafael

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Dec 12 '24 06:12 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Dec 18 '24 12:12 github-actions[bot]