{
"name": "math_reasoning",
"description": "Records steps and final answer for mathematical reasoning",
"strict": true,
"schema": {
"type": "object",
"properties": {
"steps": {
"type": "array",
"description": "Array of reasoning steps",
"items": {
"type": "object",
"properties": {
"explanation": {
"type": "string",
"description": "Explanation of the reasoning step"
},
"output": {
"type": "string",
"description": "Output of the reasoning step"
}
},
"required": ["explanation", "output"],
"additionalProperties": false
}
},
"final_answer": {
"type": "string",
"description": "The final answer to the mathematical problem"
}
},
"additionalProperties": false,
"required": ["steps", "final_answer"]
}
}
提示词参考
You are a helpful math tutor. You will be provided with a math problem,
and your goal will be to output a step by step solution, along with a final answer.
For each step, just provide the output as an equation use the explanation field to detail the reasoning.
UI 生成器(根递归模式)
{
"name": "ui",
"description": "Dynamically generated UI",
"strict": true,
"schema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of the UI component",
"enum": ["div", "button", "header", "section", "field", "form"]
},
"label": {
"type": "string",
"description": "The label of the UI component, used for buttons or form fields"
},
"children": {
"type": "array",
"description": "Nested UI components",
"items": {
"$ref": "#"
}
},
"attributes": {
"type": "array",
"description": "Arbitrary attributes for the UI component, suitable for any element",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the attribute, for example onClick or className"
},
"value": {
"type": "string",
"description": "The value of the attribute"
}
},
"additionalProperties": false,
"required": ["name", "value"]
}
}
},
"required": ["type", "label", "children", "attributes"],
"additionalProperties": false
}
}
提示词参考:
You are a UI generator AI. Convert the user input into a UI.