Skip to content

Commit

Permalink
chore(openapi): remove deprecated vapifault error and StepDestination…
Browse files Browse the repository at this point in the history
…, HandoffStep, AssignmentMutation, CallbackStep objects
  • Loading branch information
fern-api[bot] committed Oct 7, 2024
1 parent 6a5c62d commit d2d8aa5
Showing 1 changed file with 0 additions and 198 deletions.
198 changes: 0 additions & 198 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -8446,7 +8446,6 @@
"vapifault-transport-never-connected",
"vapifault-web-call-worker-setup-failed",
"vapifault-transport-connected-but-call-not-active",
"vapifault-call-started-but-connection-to-transport-missing",
"pipeline-error-openai-voice-failed",
"pipeline-error-cartesia-voice-failed",
"pipeline-error-deepgram-transcriber-failed",
Expand Down Expand Up @@ -17275,7 +17274,6 @@
"vapifault-transport-never-connected",
"vapifault-web-call-worker-setup-failed",
"vapifault-transport-connected-but-call-not-active",
"vapifault-call-started-but-connection-to-transport-missing",
"pipeline-error-openai-voice-failed",
"pipeline-error-cartesia-voice-failed",
"pipeline-error-deepgram-transcriber-failed",
Expand Down Expand Up @@ -18034,7 +18032,6 @@
"vapifault-transport-never-connected",
"vapifault-web-call-worker-setup-failed",
"vapifault-transport-connected-but-call-not-active",
"vapifault-call-started-but-connection-to-transport-missing",
"pipeline-error-openai-voice-failed",
"pipeline-error-cartesia-voice-failed",
"pipeline-error-deepgram-transcriber-failed",
Expand Down Expand Up @@ -19949,201 +19946,6 @@
"toolCall",
"metadata"
]
},
"StepDestination": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"step"
]
},
"conditions": {
"type": "array",
"description": "This is an optional array of conditions that must be met for this destination to be triggered. If empty, this is the default destination that the step transfers to.",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ModelBasedCondition",
"title": "ModelBasedCondition"
},
{
"$ref": "#/components/schemas/RuleBasedCondition",
"title": "RuleBasedCondition"
}
]
}
},
"stepName": {
"type": "string",
"minLength": 1
}
},
"required": [
"type",
"stepName"
]
},
"HandoffStep": {
"type": "object",
"properties": {
"block": {
"description": "This is the block to use. To use an existing block, use `blockId`.",
"oneOf": [
{
"$ref": "#/components/schemas/CreateConversationBlockDTO",
"title": "ConversationBlock"
},
{
"$ref": "#/components/schemas/CreateToolCallBlockDTO",
"title": "ToolCallBlock"
},
{
"$ref": "#/components/schemas/CreateWorkflowBlockDTO",
"title": "WorkflowBlock",
"description": "This is the CreateWorkflowBlockDTO object but Swagger does not display nested schemas correctly."
}
]
},
"type": {
"type": "string",
"description": "This is a step that takes a handoff from the previous step. This means it won't return to the calling step. The workflow execution will continue linearly.\n\nUse case:\n- You want to collect information linearly (e.g. a form, provide information, etc).",
"enum": [
"handoff"
]
},
"destinations": {
"type": "array",
"description": "These are the destinations that the step can go to after it's done.",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/StepDestination",
"title": "StepDestination"
}
]
}
},
"name": {
"type": "string",
"description": "This is the name of the step.",
"minLength": 1
},
"blockId": {
"type": "string",
"description": "This is the id of the block to use. To use a transient block, use `block`."
},
"input": {
"type": "object",
"description": "This is the input to the block. You can use any key-value map as input to the block.\n\nExample:\n{\n \"name\": \"John Doe\",\n \"age\": 20\n}\n\nYou can reference any variable in the context of the current block:\n- \"{{your-step-name.output.your-property-name}}\" for another step's output (in the same workflow; read caveat #1)\n- \"{{your-step-name.input.your-property-name}}\" for another step's input (in the same workflow; read caveat #1)\n- \"{{your-block-name.output.your-property-name}}\" for another block's output (in the same workflow; read caveat #2)\n- \"{{your-block-name.input.your-property-name}}\" for another block's input (in the same workflow; read caveat #2)\n- \"{{workflow.input.your-property-name}}\" for the current workflow's input\n- \"{{global.your-property-name}}\" for the global context\n\nExample:\n{\n \"name\": \"{{my-tool-call-step.output.name}}\",\n \"age\": \"{{my-tool-call-step.input.age}}\",\n \"date\": \"{{workflow.input.date}}\"\n}\n\nYou can dynamically change the key name.\n\nExample:\n{\n \"{{my-tool-call-step.output.key-name-for-name}}\": \"{{name}}\",\n \"{{my-tool-call-step.input.key-name-for-age}}\": \"{{age}}\",\n \"{{workflow.input.key-name-for-date}}\": \"{{date}}\"\n}\n\nYou can represent the value as a string, number, boolean, array, or object.\n\nExample:\n{\n \"name\": \"john\",\n \"age\": 20,\n \"date\": \"2021-01-01\",\n \"metadata\": {\n \"unique-key\": \"{{my-tool-call-step.output.unique-key}}\"\n },\n \"array\": [\"A\", \"B\", \"C\"],\n}\n\nCaveats:\n1. a workflow can execute a step multiple times. example, if a loop is used in the graph. {{stepName.input/output.propertyName}} will reference the latest usage of the step.\n2. a workflow can execute a block multiple times. example, if a step is called multiple times or if a block is used in multiple steps. {{blockName.input/output.propertyName}} will reference the latest usage of the block. this liquid variable is just provided for convenience when creating blocks outside of a workflow."
}
},
"required": [
"type",
"name"
]
},
"AssignmentMutation": {
"type": "object",
"properties": {
"conditions": {
"type": "array",
"description": "This is an optional array of conditions that must be met for this mutation to be triggered.",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ModelBasedCondition",
"title": "ModelBasedCondition"
},
{
"$ref": "#/components/schemas/RuleBasedCondition",
"title": "RuleBasedCondition"
}
]
}
},
"type": {
"type": "string",
"description": "This mutation assigns a new value to an existing or new variable.",
"enum": [
"assignment"
]
},
"variable": {
"type": "string",
"description": "This is the variable to assign a new value to.\n\nYou can reference any variable in the context of the current block execution (step):\n- \"output.your-property-name\" for current step's output\n- \"your-step-name.output.your-property-name\" for another step's output (in the same workflow; read caveat #1)\n- \"your-block-name.output.your-property-name\" for another block's output (in the same workflow; read caveat #2)\n- \"global.your-property-name\" for the global context\n\nThis needs to be the key path of the variable. If you use {{}}, it'll dereference that to the value of the variable before assignment. This can be useful if the path is dynamic. Example:\n- \"global.{{my-tool-call-step.output.my-key-name}}\"\n\nYou can also string interpolate multiple variables to get the key name:\n- \"global.{{my-tool-call-step.output.my-key-name-suffix}}-{{my-tool-call-step.output.my-key-name}}\"\n\nThe path to the new variable is created if it doesn't exist. Example:\n- \"global.this-does-not-exist.neither-does-this\" will create `this-does-not-exist` object with `neither-does-this` as a key\n\nCaveats:\n1. a workflow can execute a step multiple times. example, if a loop is used in the graph. {{stepName.output.propertyName}} will reference the latest usage of the step.\n2. a workflow can execute a block multiple times. example, if a step is called multiple times or if a block is used in multiple steps. {{blockName.output.propertyName}} will reference the latest usage of the block. this liquid variable is just provided for convenience when creating blocks outside of a workflow."
},
"value": {
"type": "string",
"description": "The value to assign to the variable.\n\nYou can reference any variable in the context of the current block execution (step):\n- \"{{output.your-property-name}}\" for current step's output\n- \"{{your-step-name.output.your-property-name}}\" for another step's output (in the same workflow; read caveat #1)\n- \"{{your-block-name.output.your-property-name}}\" for another block's output (in the same workflow; read caveat #2)\n- \"{{global.your-property-name}}\" for the global context\n\nOr, you can use a constant:\n- \"1\"\n- \"text\"\n- \"true\"\n- \"false\"\n\nOr, you can mix and match with string interpolation:\n- \"{{your-property-name}}-{{input.your-property-name-2}}-1\"\n\nCaveats:\n1. a workflow can execute a step multiple times. example, if a loop is used in the graph. {{stepName.output.propertyName}} will reference the latest usage of the step.\n2. a workflow can execute a block multiple times. example, if a step is called multiple times or if a block is used in multiple steps. {{blockName.output.propertyName}} will reference the latest usage of the block. this liquid variable is just provided for convenience when creating blocks outside of a workflow.",
"maxLength": 1000
}
},
"required": [
"type",
"variable",
"value"
]
},
"CallbackStep": {
"type": "object",
"properties": {
"block": {
"description": "This is the block to use. To use an existing block, use `blockId`.",
"oneOf": [
{
"$ref": "#/components/schemas/CreateConversationBlockDTO",
"title": "ConversationBlock"
},
{
"$ref": "#/components/schemas/CreateToolCallBlockDTO",
"title": "ToolCallBlock"
},
{
"$ref": "#/components/schemas/CreateWorkflowBlockDTO",
"title": "WorkflowBlock",
"description": "This is the CreateWorkflowBlockDTO object but Swagger does not display nested schemas correctly."
}
]
},
"type": {
"type": "string",
"description": "This is a step that calls back to the previous step after it's done. This effectively means we're spawning a new conversation thread. The previous conversation thread will resume where it left off once this step is done.\n\nUse case:\n- You are collecting a customer's order and while they were on one item, they start a new item or try to modify a previous one. You would make a OrderUpdate block which calls the same block repeatedly when a new update starts.",
"enum": [
"callback"
]
},
"mutations": {
"type": "array",
"description": "This is the mutations to apply to the context after the step is done.",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/AssignmentMutation",
"title": "AssignmentMutation"
}
]
}
},
"name": {
"type": "string",
"description": "This is the name of the step.",
"minLength": 1
},
"blockId": {
"type": "string",
"description": "This is the id of the block to use. To use a transient block, use `block`."
},
"input": {
"type": "object",
"description": "This is the input to the block. You can use any key-value map as input to the block.\n\nExample:\n{\n \"name\": \"John Doe\",\n \"age\": 20\n}\n\nYou can reference any variable in the context of the current block:\n- \"{{your-step-name.output.your-property-name}}\" for another step's output (in the same workflow; read caveat #1)\n- \"{{your-step-name.input.your-property-name}}\" for another step's input (in the same workflow; read caveat #1)\n- \"{{your-block-name.output.your-property-name}}\" for another block's output (in the same workflow; read caveat #2)\n- \"{{your-block-name.input.your-property-name}}\" for another block's input (in the same workflow; read caveat #2)\n- \"{{workflow.input.your-property-name}}\" for the current workflow's input\n- \"{{global.your-property-name}}\" for the global context\n\nExample:\n{\n \"name\": \"{{my-tool-call-step.output.name}}\",\n \"age\": \"{{my-tool-call-step.input.age}}\",\n \"date\": \"{{workflow.input.date}}\"\n}\n\nYou can dynamically change the key name.\n\nExample:\n{\n \"{{my-tool-call-step.output.key-name-for-name}}\": \"{{name}}\",\n \"{{my-tool-call-step.input.key-name-for-age}}\": \"{{age}}\",\n \"{{workflow.input.key-name-for-date}}\": \"{{date}}\"\n}\n\nYou can represent the value as a string, number, boolean, array, or object.\n\nExample:\n{\n \"name\": \"john\",\n \"age\": 20,\n \"date\": \"2021-01-01\",\n \"metadata\": {\n \"unique-key\": \"{{my-tool-call-step.output.unique-key}}\"\n },\n \"array\": [\"A\", \"B\", \"C\"],\n}\n\nCaveats:\n1. a workflow can execute a step multiple times. example, if a loop is used in the graph. {{stepName.input/output.propertyName}} will reference the latest usage of the step.\n2. a workflow can execute a block multiple times. example, if a step is called multiple times or if a block is used in multiple steps. {{blockName.input/output.propertyName}} will reference the latest usage of the block. this liquid variable is just provided for convenience when creating blocks outside of a workflow."
}
},
"required": [
"type",
"name"
]
}
}
}
Expand Down

0 comments on commit d2d8aa5

Please sign in to comment.