assistantMessage
fun Testing.Config.SubgraphAssertionsBuilder<*, *>.assistantMessage(text: String, finishReason: String? = null): Message.Assistant(source)
Creates an assistant message with the provided text and finish reason.
Return
A new instance of Message.Assistant containing the provided content, finish reason, and associated metadata.
Parameters
text
The content of the assistant message.
finishReason
The reason indicating why the message was concluded. Defaults to null.
fun <Args> Testing.Config.SubgraphAssertionsBuilder<*, *>.assistantMessage(tool: Tool<Args, *>, args: Args, finishReason: String? = null): Message.Assistant(source)
Creates an assistant message with the provided text and finish reason.
Return
A new instance of Message.Assistant containing the provided content, finish reason, and associated metadata.
Parameters
tool
The tool used to generate the message content.
args
The arguments passed to the tool.
finishReason
The reason indicating why the message was concluded. Defaults to null.