JJoeven

Exercises / agents

Parse a ReAct triple

parse_react(text) returns {thought, tool, args} from Thought/Action/Action Input lines. Search args is {query: input}.

Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.