Skip to content

Update 43_Building_a_Tool_Calling_Agent.ipynb#397

Merged
bilgeyucel merged 5 commits intomainfrom
sjrl-patch-1
Apr 25, 2025
Merged

Update 43_Building_a_Tool_Calling_Agent.ipynb#397
bilgeyucel merged 5 commits intomainfrom
sjrl-patch-1

Conversation

@sjrl
Copy link
Copy Markdown
Contributor

@sjrl sjrl commented Apr 23, 2025

Update Agent Tutorial to:

  • utilize input_mapping and output_mapping in SuperComponent
  • use OutputAdapter instead of ChatPromptBuilder in the ComponentTool since we ideally want to return a string from a Tool
  • Use the outputs_to_string in ComponentTool so we only send the string from the output adapter instead of a dict

@sjrl sjrl requested a review from a team as a code owner April 23, 2025 13:08
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@sjrl sjrl requested a review from bilgeyucel April 23, 2025 13:09
Comment thread tutorials/43_Building_a_Tool_Calling_Agent.ipynb
Comment on lines +268 to +269
" input_mapping={\"query\": [\"search.query\"]},\n",
" output_mapping={\"output_adapter.output\": \"search_result\"}\n",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bilgeyucel I added these here to show how to use these in a SuperComponent context as well as to make the parameter specification of the ComponentTool only contain query instead of all possible inputs the SuperComponent could take.

Comment thread tutorials/43_Building_a_Tool_Calling_Agent.ipynb Outdated
@bilgeyucel bilgeyucel merged commit 41c8192 into main Apr 25, 2025
4 checks passed
@bilgeyucel bilgeyucel deleted the sjrl-patch-1 branch April 25, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants