StructuredOutputReminder
public enum StructuredOutputReminder
源码Source
io/agentscope/core/model/StructuredOutputReminder.java:25–51定义结构化输出 Reminder相关取值的枚举。位于 io.agentscope.core.model 包。核心成员包括 TOOL_CHOICE、PROMPT。
Configuration for how to ensure the model calls generate_response tool in structured output mode.
This enum controls the mechanism used to enforce that the model calls the temporary generate_response tool when generating structured output.
枚举常量摘要Enum Constant Summary
| 常量Constant | 说明Description |
|---|---|
TOOL_CHOICE | 执行工具选项相关操作。 Use tool_choice API parameter to force the tool call when the model doesn't call it
voluntarily. |
PROMPT | 执行提示词相关操作。 Inject reminder prompt when model doesn't call the tool. |
枚举常量详情Enum Constant Detail
TOOL_CHOICE
TOOL_CHOICE
staticfinal
执行工具选项相关操作。
Use tool_choice API parameter to force the tool call when the model doesn't call it voluntarily.
源码Source
io/agentscope/core/model/StructuredOutputReminder.java:40PROMPT
PROMPT
staticfinal
执行提示词相关操作。
Inject reminder prompt when model doesn't call the tool.
源码Source
io/agentscope/core/model/StructuredOutputReminder.java:50