指令;命令
A unit of instruction provided to an LlmAgent.
Use one of the variants:
Text for a single literal string (most common).
Structured for a pre-built, possibly multimodal Content.
Provider for instructions that must be resolved per turn from a ReadonlyContext.
Convenience factories on the companion object allow the call sites Instruction("text"), Instruction(content), and Instruction { ctx -> ... }.
Inheritors
类型
Link copied to clipboard
一个用于生成相应指令的函数 内容 在适当的时候(或:在需要的时候),考虑到…… ReadonlyContext.
Link copied to clipboard
一种预先构建的结构化指令,例如多模态内容(即同时包含文本、图像、音频等多种形式的信息)。