GitHub

AssistantMessage

API reference for AssistantMessage.

What the model said.

Attributes

AttributeTypeDescription
roleLiteral['assistant'] = 'assistant'
contentSequence[AssistantMessagePart]
optionsProviderOptions = field(default_factory=_options)

Functions

__init__

__init__(content, options=_options()) -> None
ParameterTypeDescription
contentSequence[AssistantMessagePart]
optionsProviderOptions = _options()

pipe

pipe[B](f) -> B
ParameterTypeDescription
fCallable[[Self], B]

Returns B

def pipe[B](self, f: Callable[[Self], B], /) -> B:
    return f(self)