testSession
testSession(
agent,inputs):Promise<TestSessionResult>
Multi-turn session test helper. Returns per-turn results and final session state.
Parameters
Section titled “Parameters”The Agent instance to test
inputs
Section titled “inputs”string[]
Array of user messages (one per turn)
Returns
Section titled “Returns”Promise<TestSessionResult>
TestSessionResult with per-turn results and session data
Example
Section titled “Example”const result = await testSession(agent, ["Hello", "Follow up", "Goodbye"])expect(result.turns).toHaveLength(3)expect(result.session.history).toHaveLength(6)