Update input type options in schemas and graph base classes
This commit is contained in:
parent
239fb230c6
commit
888a6904d5
2 changed files with 4 additions and 4 deletions
|
|
@ -259,7 +259,7 @@ class VerticesBuiltResponse(BaseModel):
|
||||||
class InputValueRequest(BaseModel):
|
class InputValueRequest(BaseModel):
|
||||||
components: Optional[List[str]] = []
|
components: Optional[List[str]] = []
|
||||||
input_value: Optional[str] = None
|
input_value: Optional[str] = None
|
||||||
type: Optional[Literal["chat", "text", "json", "any"]] = Field(
|
type: Optional[Literal["chat", "text", "any"]] = Field(
|
||||||
"any",
|
"any",
|
||||||
description="Defines on which components the input value should be applied. 'any' applies to all input components.",
|
description="Defines on which components the input value should be applied. 'any' applies to all input components.",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ class Graph:
|
||||||
self,
|
self,
|
||||||
inputs: Dict[str, str],
|
inputs: Dict[str, str],
|
||||||
input_components: list[str],
|
input_components: list[str],
|
||||||
input_type: Literal["chat", "text", "json", "any"] | None,
|
input_type: Literal["chat", "text", "any"] | None,
|
||||||
outputs: list[str],
|
outputs: list[str],
|
||||||
stream: bool,
|
stream: bool,
|
||||||
session_id: str,
|
session_id: str,
|
||||||
|
|
@ -271,7 +271,7 @@ class Graph:
|
||||||
self,
|
self,
|
||||||
inputs: list[Dict[str, str]],
|
inputs: list[Dict[str, str]],
|
||||||
input_components: Optional[list[list[str]]] = None,
|
input_components: Optional[list[list[str]]] = None,
|
||||||
types: Optional[list[Literal["chat", "text", "json", "any"] | None]] = None,
|
types: Optional[list[Literal["chat", "text", "any"] | None]] = None,
|
||||||
outputs: Optional[list[str]] = None,
|
outputs: Optional[list[str]] = None,
|
||||||
session_id: Optional[str] = None,
|
session_id: Optional[str] = None,
|
||||||
stream: bool = False,
|
stream: bool = False,
|
||||||
|
|
@ -309,7 +309,7 @@ class Graph:
|
||||||
self,
|
self,
|
||||||
inputs: list[Dict[str, str]],
|
inputs: list[Dict[str, str]],
|
||||||
inputs_components: Optional[list[list[str]]] = None,
|
inputs_components: Optional[list[list[str]]] = None,
|
||||||
types: Optional[list[Literal["chat", "text", "json", "any"] | None]] = None,
|
types: Optional[list[Literal["chat", "text", "any"] | None]] = None,
|
||||||
outputs: Optional[list[str]] = None,
|
outputs: Optional[list[str]] = None,
|
||||||
session_id: Optional[str] = None,
|
session_id: Optional[str] = None,
|
||||||
stream: bool = False,
|
stream: bool = False,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue