Sends a user message and returns the complete assistant reply.
Appends both turns to the session history when memory is enabled.
User message text.
The full generation result including text, usage, and tool calls.
Streams a user message and returns streaming iterables.
The assistant reply is appended to session history once the text promise resolves.
User message text.
A StreamTextResult with async iterables and awaitable aggregates.
Returns persisted usage totals for this session when the usage ledger is enabled.
Readonly idStable session identifier supplied to or auto-generated by Agent.session().
A named conversation session returned by
Agent.session(). Maintains its own message history independently of other sessions on the same agent.