Package com.braintrustdata.api.models
Interface EvalCreateParams.Score.Visitor
-
- All Implemented Interfaces:
public interface EvalCreateParams.Score.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract TvisitFunctionId(EvalCreateParams.Score.FunctionId functionId)Function id abstract TvisitProjectSlug(EvalCreateParams.Score.ProjectSlug projectSlug)Project name and slug abstract TvisitGlobalFunction(EvalCreateParams.Score.GlobalFunction globalFunction)Global function name abstract TvisitPromptSessionId(EvalCreateParams.Score.PromptSessionId promptSessionId)Prompt session id abstract TvisitInlineCode(EvalCreateParams.Score.InlineCode inlineCode)Inline code function abstract TvisitInlinePrompt(EvalCreateParams.Score.InlinePrompt inlinePrompt)Inline prompt definition Tunknown(JsonValue json)Maps an unknown variant of Score to a value of type T. -
-
Method Detail
-
visitFunctionId
abstract T visitFunctionId(EvalCreateParams.Score.FunctionId functionId)
Function id
-
visitProjectSlug
abstract T visitProjectSlug(EvalCreateParams.Score.ProjectSlug projectSlug)
Project name and slug
-
visitGlobalFunction
abstract T visitGlobalFunction(EvalCreateParams.Score.GlobalFunction globalFunction)
Global function name
-
visitPromptSessionId
abstract T visitPromptSessionId(EvalCreateParams.Score.PromptSessionId promptSessionId)
Prompt session id
-
visitInlineCode
abstract T visitInlineCode(EvalCreateParams.Score.InlineCode inlineCode)
Inline code function
-
visitInlinePrompt
abstract T visitInlinePrompt(EvalCreateParams.Score.InlinePrompt inlinePrompt)
Inline prompt definition
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Score to a value of type T.
An instance of Score can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-