createSession
expect abstract fun createSession(sessionId: String? = null): AIAgentRunSession<Input, Output, out AIAgentContext>(source)
Creates a new session for executing the agent with the given input.
This method provides a way to get 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 session instance that can be used to run the agent with specific input and context.
actual abstract fun createSession(sessionId: String?): AIAgentRunSession<Input, Output, out AIAgentContext>(source)
actual abstract fun createSession(sessionId: String?): AIAgentRunSession<Input, Output, out AIAgentContext>(source)