dspy icon indicating copy to clipboard operation
dspy copied to clipboard

ReAct Tools

Open bwhartlove opened this issue 10 months ago • 1 comments

I'd like to request some additional information on how to write custom tools for the ReAct module in DSPy. I've seen a few examples, but I've been struggling to wrap my head around how to write tools that take in multiple inputs in particular. Any and all information would be greatly appreciated. Thanks!

bwhartlove avatar Apr 24 '24 19:04 bwhartlove

Hello @bwhartlove

Ive shared my code to get custom ReAct Tools working -> ReAct calls custom tools twice #804

I simply used a list to have multiple inputs.

I hope my code helps you out!

timothyvinzent avatar Apr 26 '24 09:04 timothyvinzent