Skip to content

Commit

Permalink
Update output parsing for tool runner in notebook example of using ag…
Browse files Browse the repository at this point in the history
…ent (#14381)

* Update output parsing for tool runner in notebook example of using agent

* lint

---------

Co-authored-by: Andrei Fajardo <[email protected]>
  • Loading branch information
theta-lin and nerdai authored Jun 25, 2024
1 parent af3e409 commit 6791756
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,9 @@
" tool_name=reasoning_step.action,\n",
" tool_input=reasoning_step.action_input,\n",
" )\n",
" observation_step = ObservationReasoningStep(observation=str(tool_output))\n",
" observation_step = ObservationReasoningStep(\n",
" observation=str(tool_output[\"output\"])\n",
" )\n",
" state[\"current_reasoning\"].append(observation_step)\n",
" # TODO: get output\n",
"\n",
Expand Down

0 comments on commit 6791756

Please sign in to comment.