Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/agents/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class FunctionTool:
1. The tool run context.
2. The arguments from the LLM, as a JSON string.

You must return a one of the structured tool output types (e.g. ToolOutputText, ToolOutputImage,
You must return one of the structured tool output types (e.g. ToolOutputText, ToolOutputImage,
ToolOutputFileContent) or a string representation of the tool output, or a list of them,
or something we can call `str()` on.
In case of errors, you can either raise an Exception (which will cause the run to fail) or
Expand Down Expand Up @@ -882,7 +882,7 @@ class ImageGenerationTool:
"""A tool that allows the LLM to generate images."""

tool_config: ImageGeneration
"""The tool config, which image generation settings."""
"""The tool config, which includes image generation settings."""

@property
def name(self):
Expand Down