只读(Readonly)工具上下文(Context)

A readonly view of the tool context.

Inheritors

属性(Properties)

Link copied to clipboard
abstract val context: ReadonlyContext

只读的调用上下文(readonly invocation context)。

Link copied to clipboard
abstract val eventId: String?

触发此工具调用的事件的唯一标识符。

Link copied to clipboard
abstract val functionCallId: String?

该函数调用的唯一标识符。

函数

Link copied to clipboard
abstract suspend fun listArtifacts(): List<String>

列出当前会话中可用的所有资源(或工件)。

Link copied to clipboard
abstract suspend fun loadArtifact(name: String, version: Int? = null): Part?

从当前会话中加载特定的资源(artifact)。