指令;命令

sealed interface Instruction

A unit of instruction provided to an LlmAgent.

Use one of the variants:

Convenience factories on the companion object allow the call sites Instruction("text"), Instruction(content), and Instruction { ctx -> ... }.

Inheritors

类型

Link copied to clipboard
object Companion
Link copied to clipboard
fun interface Provider : Instruction

一个用于生成相应指令的函数 内容 在适当的时候(或:在需要的时候),考虑到…… ReadonlyContext.

Link copied to clipboard
value class Structured(val content: Content) : Instruction

一种预先构建的结构化指令,例如多模态内容(即同时包含文本、图像、音频等多种形式的信息)。

Link copied to clipboard
value class Text(val text: String) : Instruction

这是一个纯文本指令,被包裹在单个字符串中。 部件;零件 在运行时(at runtime)。