ReadonlyContext

interface ReadonlyContext

A readonly view of the invocation context.

Inheritors

Properties

Link copied to clipboard
abstract val agentName: String

The name of the agent that is being invoked.

Link copied to clipboard

The ArtifactService instance.

Link copied to clipboard
abstract val branch: String?

The branch of the invocation context.

Link copied to clipboard
abstract val invocationId: String

The unique ID of this invocation.

Link copied to clipboard

The MemoryService instance.

Link copied to clipboard
abstract val runConfig: RunConfig?

The run configuration for this invocation.

Link copied to clipboard
abstract val session: Session

The session that this invocation is a part of.

Link copied to clipboard
abstract val state: Map<String, Any>

The state of the session.

Link copied to clipboard
abstract val userContent: Content?

The user content that this invocation is processing.

Link copied to clipboard
abstract val userId: String

The user ID of the user that initiated the session.

Functions

Link copied to clipboard
abstract suspend fun getEvents(currentInvocation: Boolean = false, currentBranch: Boolean = false): List<Event>

Returns the events from the current session.