Rebuild Fern SDK (#4229)
This commit is contained in:
committed by
GitHub
parent
4b99cd3f45
commit
d6e0973dda
@@ -6,6 +6,7 @@ import type * as Skyvern from "../index.js";
|
||||
* Represents a single conditional branch edge within a ConditionalBlock.
|
||||
*/
|
||||
export interface BranchCondition {
|
||||
id?: string;
|
||||
criteria?: Skyvern.BranchConditionCriteria;
|
||||
next_block_label?: string;
|
||||
description?: string;
|
||||
|
||||
@@ -2,10 +2,16 @@
|
||||
|
||||
import type * as Skyvern from "../index.js";
|
||||
|
||||
export type BranchConditionCriteria = Skyvern.BranchConditionCriteria.Jinja2Template;
|
||||
export type BranchConditionCriteria =
|
||||
| Skyvern.BranchConditionCriteria.Jinja2Template
|
||||
| Skyvern.BranchConditionCriteria.Prompt;
|
||||
|
||||
export namespace BranchConditionCriteria {
|
||||
export interface Jinja2Template extends Skyvern.JinjaBranchCriteria {
|
||||
criteria_type: "jinja2_template";
|
||||
}
|
||||
|
||||
export interface Prompt extends Skyvern.PromptBranchCriteria {
|
||||
criteria_type: "prompt";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,15 @@
|
||||
// This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
export interface BranchCriteriaYaml {
|
||||
criteria_type?: "jinja2_template";
|
||||
criteria_type?: BranchCriteriaYaml.CriteriaType;
|
||||
expression: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export namespace BranchCriteriaYaml {
|
||||
export const CriteriaType = {
|
||||
Jinja2Template: "jinja2_template",
|
||||
Prompt: "prompt",
|
||||
} as const;
|
||||
export type CriteriaType = (typeof CriteriaType)[keyof typeof CriteriaType];
|
||||
}
|
||||
|
||||
13
skyvern-ts/client/src/api/types/PromptAction.ts
Normal file
13
skyvern-ts/client/src/api/types/PromptAction.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
// This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
/**
|
||||
* Prompt action parameters.
|
||||
*/
|
||||
export interface PromptAction {
|
||||
/** The prompt to send to the LLM */
|
||||
prompt: string;
|
||||
/** Optional JSON schema to structure the response */
|
||||
schema?: Record<string, unknown>;
|
||||
/** Optional model configuration */
|
||||
model?: Record<string, unknown>;
|
||||
}
|
||||
9
skyvern-ts/client/src/api/types/PromptBranchCriteria.ts
Normal file
9
skyvern-ts/client/src/api/types/PromptBranchCriteria.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
/**
|
||||
* Natural language branch criteria.
|
||||
*/
|
||||
export interface PromptBranchCriteria {
|
||||
expression: string;
|
||||
description?: string;
|
||||
}
|
||||
@@ -12,7 +12,9 @@ export type RunSdkActionRequestAction =
|
||||
| Skyvern.RunSdkActionRequestAction.AiSelectOption
|
||||
| Skyvern.RunSdkActionRequestAction.AiUploadFile
|
||||
| Skyvern.RunSdkActionRequestAction.Extract
|
||||
| Skyvern.RunSdkActionRequestAction.LocateElement;
|
||||
| Skyvern.RunSdkActionRequestAction.LocateElement
|
||||
| Skyvern.RunSdkActionRequestAction.Prompt
|
||||
| Skyvern.RunSdkActionRequestAction.Validate;
|
||||
|
||||
export namespace RunSdkActionRequestAction {
|
||||
export interface AiAct extends Skyvern.ActAction {
|
||||
@@ -42,4 +44,12 @@ export namespace RunSdkActionRequestAction {
|
||||
export interface LocateElement extends Skyvern.LocateElementAction {
|
||||
type: "locate_element";
|
||||
}
|
||||
|
||||
export interface Prompt extends Skyvern.PromptAction {
|
||||
type: "prompt";
|
||||
}
|
||||
|
||||
export interface Validate extends Skyvern.ValidateAction {
|
||||
type: "validate";
|
||||
}
|
||||
}
|
||||
|
||||
11
skyvern-ts/client/src/api/types/ValidateAction.ts
Normal file
11
skyvern-ts/client/src/api/types/ValidateAction.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// This file was auto-generated by Fern from our API Definition.
|
||||
|
||||
/**
|
||||
* Validate action parameters.
|
||||
*/
|
||||
export interface ValidateAction {
|
||||
/** Validation criteria or condition to check */
|
||||
prompt: string;
|
||||
/** Optional model configuration */
|
||||
model?: Record<string, unknown>;
|
||||
}
|
||||
@@ -39,6 +39,10 @@ export interface WorkflowRunBlock {
|
||||
instructions?: string;
|
||||
positive_descriptor?: string;
|
||||
negative_descriptor?: string;
|
||||
executed_branch_id?: string;
|
||||
executed_branch_expression?: string;
|
||||
executed_branch_result?: boolean;
|
||||
executed_branch_next_block?: string;
|
||||
}
|
||||
|
||||
export namespace WorkflowRunBlock {
|
||||
|
||||
@@ -94,6 +94,8 @@ export * from "./OutputParameterYaml.js";
|
||||
export * from "./PasswordCredentialResponse.js";
|
||||
export * from "./PdfParserBlock.js";
|
||||
export * from "./PdfParserBlockYaml.js";
|
||||
export * from "./PromptAction.js";
|
||||
export * from "./PromptBranchCriteria.js";
|
||||
export * from "./ProxyLocation.js";
|
||||
export * from "./RunEngine.js";
|
||||
export * from "./RunSdkActionRequestAction.js";
|
||||
@@ -130,6 +132,7 @@ export * from "./UrlBlock.js";
|
||||
export * from "./UrlBlockParametersItem.js";
|
||||
export * from "./UrlBlockYaml.js";
|
||||
export * from "./UserDefinedError.js";
|
||||
export * from "./ValidateAction.js";
|
||||
export * from "./ValidationBlock.js";
|
||||
export * from "./ValidationBlockParametersItem.js";
|
||||
export * from "./ValidationBlockYaml.js";
|
||||
|
||||
Reference in New Issue
Block a user