To Message • Rust AI Agent SDK

to_message: Convert to LLM Message

to_message

Method

</div>

This is a method of the SessionMessage class in the session module.

Convert to LLM Message

Signature

python
def to_message(&self) -> Message

Returns

ResponseField Message

The result of the operation.