工作流步骤

model.generate

type: "model.generate"

多数链条的工马:分类、总结、草稿、提取。

model requiredschema for JSONbilled per call
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

modelstring必填

模型名 保存时拒绝 失踪 。

inputsarray

[{ type: "text", content }],包含图像。

outputsarray

生成什么。 默认情况下文本 。

schemaobject

A A A JSON 答案是作为物体 而不是作为书状

settingsobject

温度 输出上限 思考

storagestring

储存文件提供背景材料。

输出

{{steps.classify.output.text}}            // the prose
{{steps.classify.output.usage.credits}}   // what it cost
"{{steps.classify.output.text}}"            # the prose
"{{steps.classify.output.usage.credits}}"   # what it cost

带 schema,对象的字段可以直接读取——这就是模型对分支的回答安全性所在。

使用一个计划,每当稍后一步读到它时使用

传言的分行是靠运气的分行

测试文本是否包含“ 紧急” 的状态, 第一次打破模式写道 ” 这不是紧急 。 计划给出了布林, 条件读出布林。

{ id: "classify", type: "model.generate", config: {
    model: "gemini-3.5-flash",
    schema: { type: "object", properties: { urgent: { type: "boolean" }, reason: { type: "string" } } },
    inputs: [{ type: "text", content: "Is this urgent? {{input.text}}" }],
} }
{"id": "classify", "type": "model.generate", "config": {
    "model": "gemini-3.5-flash",
    "schema": {"type": "object", "properties": {"urgent": {"type": "boolean"}, "reason": {"type": "string"}}},
    "inputs": [{"type": "text", "content": "Is this urgent? {{input.text}}"}],
}}

是个示范电话

以其他任何方式开出账单,而该步骤报告其信用。 在一个预定或即将到来的触发点,每发枪都付出成本 — — 将廉价的支票放在面前。