Integrate images via tool calling to bring your chatbot to life
Add a system prompt
Use the system prompt
Define the tool
Pass the tool to the SDK
runTools
method for convenient implementation of tool calling.
Additionally, you can use the message
event to add the tool call messages along with the assistant response to the message history:Test it out!