feat: add reusable session preparation
This commit is contained in:
@@ -187,8 +187,8 @@ export interface AgentFactory {
|
||||
*/
|
||||
createAgent(ownerCtx: Context, options: CreateAgentOptions): Promise<AgentHandle>
|
||||
/**
|
||||
* Load a persisted session and resume an agent on it. Async because it awaits
|
||||
* both `ctx.sessionPersistence.load` and the optional unpublished setup
|
||||
* Prepare a persisted session and resume an agent on it. Async because it awaits
|
||||
* both `ctx.sessionPersistence.prepare` and the optional unpublished setup
|
||||
* transaction; must be called after that service exists (consumers inject
|
||||
* `sessionPersistence`). Publication follows the same setup-commit and
|
||||
* ordered boundary as {@link createAgent}.
|
||||
|
||||
Reference in New Issue
Block a user