Attributes
- Companion
- class
- Source
- Reply.scala
- Graph
-
- Supertypes
- Self type
-
Reply.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
Creates a Reply. The named arguments are the supported way to build one; the factories below cover the common cases.
Creates a Reply. The named arguments are the supported way to build one; the factories below cover the common cases.
Attributes
- Source
- Reply.scala
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
- Source
- Reply.scala
A plain text answer.
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 - Source
- Reply.scala
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
- Source
- Reply.scala
Concrete fields
The model name a completion reports unless Reply.withModel changes it.
The model name a completion reports unless Reply.withModel changes it.
Attributes
- Source
- Reply.scala
