Attributes
Members list
Type members
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
A call that fails with error, for example a RateLimitError or a TimeoutError.
A call that fails with error, for example a RateLimitError or a TimeoutError.
Attributes
An answer that calls one tool.
An answer that calls one tool.
Reply.toolCall("get_weather", """{"city": "Paris"}""")
The arguments are checked here, when the script is written: text that is not a JSON object is a mistake in the test, so it throws at once, naming the tool and the text, instead of surfacing later as a confusing failure of the code under test.
Value parameters
- argumentsJson
-
the arguments the model passes, as a JSON object;
{}when the tool takes none - id
-
the id of the call; when
Nonethe client numbers itcall-<call number>-<position> - name
-
the name of the tool, as registered with the agent
Attributes
- Throws
-
IllegalArgumentException
if
argumentsJsonis not a JSON object
An answer that makes several tool calls at once, built from core's ToolCall. Without a JSON library at hand, chain Reply.withToolCall onto Reply.toolCall instead.
An answer that makes several tool calls at once, built from core's ToolCall. Without a JSON library at hand, chain Reply.withToolCall onto Reply.toolCall instead.
Attributes
Concrete fields
The model name a completion reports unless Reply.withModel changes it.