AbstractInferenceRequestSpecification
Abstract class for defining specifications for inference requests. Provides functionality for configuring parameters and specifying conditions related to system and user messages within the request.
Parameters
Optional model identifier.
A mutable list of matchers representing conditions on the request body.
A mutable list of matchers representing conditions on the request body string.
Type Parameters
The type of the request body.
Constructors
Properties
Functions
Adds a matcher to require that the request body string contains the specified substring.
Adds a condition to ensure the request body contains the specified substring, ignoring case sensitivity.
Adds a condition to ensure the request body does not contain the specified substring.
Adds a condition to ensure the request body does not contain the specified substring, ignoring case sensitivity.
Adds a matcher to require the request body object to be exactly equal to the specified object.
Adds a matcher to require the request body string to be exactly equal to the specified value.
Adds a matcher that requires the request body string to exactly match the specified JSON payload.
Adds a condition to verify that the request matches the specified matcher.
Adds a condition to verify that the request matches the specified predicate.
Adds a condition to verify that the request satisfies the specified call.
Specifies that the system/developer message must contain a dynamically constructed string. The string can be built using a lambda with a StringBuilder receiver.
Specifies that the system/developer message must contain the provided string.
Specifies a condition that the user's message must contain a dynamically constructed string. The string can be built using a lambda with a StringBuilder receiver.
Specifies that the user's message must contain the provided substring.