GitHub

UserMessage

API reference for UserMessage.

What the user said: text and files.

Attributes

AttributeTypeDescription
roleLiteral['user'] = 'user'
contentSequence[UserMessagePart]
optionsProviderOptions = field(default_factory=_options)

Functions

__init__

__init__(content, options=_options()) -> None
ParameterTypeDescription
contentSequence[UserMessagePart]
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)