run
abstract fun run(userId: String, sessionId: String, newMessage: Content, runConfig: RunConfig? = null): Iterator<Event>
Sync interface for local testing and convenience purpose.
Return
The events generated by the agent.
Parameters
userId
The user ID of the session.
sessionId
The session ID, fetched (or created, if the runner creates missing sessions) before the run starts.
newMessage
A new message to append to the session.
runConfig
The run config for the agent.
Throws
if the session does not exist and the runner does not create missing sessions.