The current agent name.
The current invocation id.
The delta-aware state of the current session.
The user content that started this invocation.
Loads an artifact attached to the current session.
The filename of the artifact.
Optionalversion: numberThe version of the artifact. If not provided, the latest version will be used.
A promise that resolves to the loaded artifact.
Saves an artifact attached to the current session.
The filename of the artifact.
The artifact to save.
A promise that resolves to the version of the saved artifact.
The context of various callbacks within an agent run.