Skip to content

Update 43_Building_a_Tool_Calling_Agent.ipynb #397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 25, 2025
Merged

Conversation

sjrl
Copy link
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
Copy link

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 on lines 268 to 269
" input_mapping={\"query\": [\"search.query\"]},\n",
" output_mapping={\"output_adapter.output\": \"search_result\"}\n",
Copy link
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.

@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