createSession

open override fun createSession(sessionId: String?): AIAgentRunSession<Input, Output, TContext>(source)

Creates a new AIAgentRunSession for executing the agent with the given input.

This method provides a way to obtain a session object that can be used to execute the agent independently. The session manages the complete execution lifecycle including state tracking, pipeline coordination, and strategy execution.

Return

A new AIAgentRunSession instance configured with this agent's logger, strategy, and identifier. The session can be used to run the agent with specific input and context.