RequiredAction

sealed class RequiredAction

Represents a required action for a run. This is used when the Assistant requests tool calls. In this future, this may be used for other required actions as well.

Inheritors

Types

Link copied to clipboard
data class SubmitToolCallAction(val toolCalls: List<ToolCall>) : RequiredAction

Represents a request by the Assistant for a list of tool calls.

Link copied to clipboard

Represents the type of the required action.

Properties

Link copied to clipboard

Returns the type of the required action. This is effectively the same as checking the type via Class.isInstance (or instanceof in java, is in Kotlin).