You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose adding support for tools that can return images. This would enable agents to generate, process, and analyze visual data as part of their workflow.
Use Cases:
Data Visualization
Agents could generate plots and charts from numerical data
Analyze trends and patterns visually
Make data-driven decisions based on visual representations
Image Processing
Generate or modify images based on specifications
Create diagrams or flowcharts
Process and return modified images
Dummy Example Scenario:
@function_tooldefcreate_plot(data: list[float]) ->Image: # New Image return type"""Creates a line plot from the given data and returns it as an image."""plt.figure()
plt.plot(data)
# Convert plot to imagereturnplot_to_image()
The text was updated successfully, but these errors were encountered:
Yeah that would be cool. Would require a somewhat large refactor to the tools pipeline, to allow returning Content from a tool call instead of just str
Describe the feature
I would like to propose adding support for tools that can return images. This would enable agents to generate, process, and analyze visual data as part of their workflow.
Use Cases:
Data Visualization
Image Processing
Dummy Example Scenario:
The text was updated successfully, but these errors were encountered: