只读(Readonly)上下文(Context)

interface ReadonlyContext

A readonly view of the invocation context.

Inheritors

属性(Properties)

Link copied to clipboard
abstract val agentName: String

被调用的代理的名称。

Link copied to clipboard

`ArtifactService` 实例。

Link copied to clipboard
abstract val branch: String?

调用上下文( invocation context)的一个分支。

Link copied to clipboard
abstract val invocationId: String

此次调用的唯一标识符。

Link copied to clipboard

`MemoryService` 实例。

Link copied to clipboard
abstract val runConfig: RunConfig?

此次调用的运行配置。

Link copied to clipboard
abstract val session: Session

本次调用所属的会话(session)。

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

会话的状态。

Link copied to clipboard
abstract val userContent: Content?

此调用正在处理的用户内容。

Link copied to clipboard
abstract val userId: String

发起会话的用户的用户 ID。

函数

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

返回当前会话中的所有事件。