Module naptha_sdk.schemas
Classes
class AgentConfig (**data: Any)
-
Expand source code
class AgentConfig(BaseModel): config_name: Optional[str] = "agent_config" llm_config: Optional[LLMConfig] = None persona_module: Optional[Union[Dict, BaseModel]] = None system_prompt: Optional[Union[Dict, BaseModel]] = None
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var config_name : str | None
-
The type of the None singleton.
var llm_config : LLMConfig | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var persona_module : Dict | pydantic.main.BaseModel | None
-
The type of the None singleton.
var system_prompt : Dict | pydantic.main.BaseModel | None
-
The type of the None singleton.
class AgentDeployment (**data: Any)
-
Expand source code
class AgentDeployment(BaseModel): node: Union[NodeConfigUser, NodeConfig, Dict] name: Optional[str] = None module: Optional[Dict] = None config: Optional[AgentConfig] = None data_generation_config: Optional[DataGenerationConfig] = None tool_deployments: Optional[List[ToolDeployment]] = None environment_deployments: Optional[List[EnvironmentDeployment]] = None kb_deployments: Optional[List[KBDeployment]] = None memory_deployments: Optional[List[MemoryDeployment]] = None
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var config : AgentConfig | None
-
The type of the None singleton.
var data_generation_config : DataGenerationConfig | None
-
The type of the None singleton.
var environment_deployments : List[EnvironmentDeployment] | None
-
The type of the None singleton.
var kb_deployments : List[KBDeployment] | None
-
The type of the None singleton.
var memory_deployments : List[MemoryDeployment] | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var module : Dict | None
-
The type of the None singleton.
var name : str | None
-
The type of the None singleton.
var node : NodeConfigUser | NodeConfig | Dict
-
The type of the None singleton.
var tool_deployments : List[ToolDeployment] | None
-
The type of the None singleton.
class AgentModuleType (*args, **kwds)
-
Expand source code
class AgentModuleType(str, Enum): package = "package" docker = "docker"
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
Ancestors
- builtins.str
- enum.Enum
Class variables
var docker
-
The type of the None singleton.
var package
-
The type of the None singleton.
class AgentRun (**data: Any)
-
Expand source code
class AgentRun(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: AgentDeployment tool_deployments: Optional[List[ToolDeployment]] = None environment_deployments: Optional[List[EnvironmentDeployment]] = None orchestrator_runs: List['OrchestratorRun'] = [] status: str = "pending" error: bool = False id: Optional[str] = None results: list[str] = [] error_message: Optional[str] = None created_time: Optional[str] = None start_processing_time: Optional[str] = None completed_time: Optional[str] = None duration: Optional[float] = None input_schema_ipfs_hash: Optional[str] = None signature: str class Config: allow_mutation = True json_encoders = { datetime: lambda v: v.isoformat(), } def model_dict(self): model_dict = self.dict() for key, value in model_dict.items(): if isinstance(value, datetime): model_dict[key] = value.isoformat() elif isinstance(value, AgentModuleType): model_dict[key] = value.value for i, orchestrator_run in enumerate(model_dict['orchestrator_runs']): for key, value in orchestrator_run.items(): if isinstance(value, datetime): model_dict['orchestrator_runs'][i][key] = value.isoformat() return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var Config
-
The type of the None singleton.
var completed_time : str | None
-
The type of the None singleton.
var consumer_id : str
-
The type of the None singleton.
var created_time : str | None
-
The type of the None singleton.
var deployment : AgentDeployment
-
The type of the None singleton.
var duration : float | None
-
The type of the None singleton.
var environment_deployments : List[EnvironmentDeployment] | None
-
The type of the None singleton.
var error : bool
-
The type of the None singleton.
var error_message : str | None
-
The type of the None singleton.
var id : str | None
-
The type of the None singleton.
var input_schema_ipfs_hash : str | None
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var orchestrator_runs : List[OrchestratorRun]
-
The type of the None singleton.
var results : list[str]
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
var start_processing_time : str | None
-
The type of the None singleton.
var status : str
-
The type of the None singleton.
var tool_deployments : List[ToolDeployment] | None
-
The type of the None singleton.
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): model_dict = self.dict() for key, value in model_dict.items(): if isinstance(value, datetime): model_dict[key] = value.isoformat() elif isinstance(value, AgentModuleType): model_dict[key] = value.value for i, orchestrator_run in enumerate(model_dict['orchestrator_runs']): for key, value in orchestrator_run.items(): if isinstance(value, datetime): model_dict['orchestrator_runs'][i][key] = value.isoformat() return model_dict
class AgentRunInput (**data: Any)
-
Expand source code
class AgentRunInput(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: AgentDeployment tool_deployments: Optional[List[ToolDeployment]] = None environment_deployments: Optional[List[EnvironmentDeployment]] = None kb_deployment: Optional[KBDeployment] = None orchestrator_runs: List['OrchestratorRun'] = [] signature: str def model_dict(self): model_dict = self.dict() if isinstance(self.deployment.config, BaseModel): config = self.deployment.config.model_dump() model_dict['deployment']['config'] = config return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var consumer_id : str
-
The type of the None singleton.
var deployment : AgentDeployment
-
The type of the None singleton.
var environment_deployments : List[EnvironmentDeployment] | None
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var kb_deployment : KBDeployment | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var orchestrator_runs : List[OrchestratorRun]
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
var tool_deployments : List[ToolDeployment] | None
-
The type of the None singleton.
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): model_dict = self.dict() if isinstance(self.deployment.config, BaseModel): config = self.deployment.config.model_dump() model_dict['deployment']['config'] = config return model_dict
class ChatCompletionRequest (**data: Any)
-
Expand source code
class ChatCompletionRequest(BaseModel): model: str messages: List[ChatMessage] temperature: Optional[float] = None max_tokens: Optional[int] = None top_p: Optional[float] = None frequency_penalty: Optional[float] = None presence_penalty: Optional[float] = None stop: Optional[List[str]] = None stream: Optional[bool] = None stream_options: Optional[dict] = None n: Optional[int] = None response_format: Optional[dict] = None seed: Optional[int] = None tools: Optional[List] = None tool_choice: Optional[str] = None parallel_tool_calls: Optional[bool] = None
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var frequency_penalty : float | None
-
The type of the None singleton.
var max_tokens : int | None
-
The type of the None singleton.
var messages : List[ChatMessage]
-
The type of the None singleton.
var model : str
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var n : int | None
-
The type of the None singleton.
var parallel_tool_calls : bool | None
-
The type of the None singleton.
var presence_penalty : float | None
-
The type of the None singleton.
var response_format : dict | None
-
The type of the None singleton.
var seed : int | None
-
The type of the None singleton.
var stop : List[str] | None
-
The type of the None singleton.
var stream : bool | None
-
The type of the None singleton.
var stream_options : dict | None
-
The type of the None singleton.
var temperature : float | None
-
The type of the None singleton.
var tool_choice : str | None
-
The type of the None singleton.
var tools : List | None
-
The type of the None singleton.
var top_p : float | None
-
The type of the None singleton.
class ChatMessage (**data: Any)
-
Expand source code
class ChatMessage(BaseModel): role: str content: str
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var content : str
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var role : str
-
The type of the None singleton.
class Choices (**data: Any)
-
Expand source code
class Choices(BaseModel): message: ChatMessage finish_reason: str index: int
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var finish_reason : str
-
The type of the None singleton.
var index : int
-
The type of the None singleton.
var message : ChatMessage
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
class DataGenerationConfig (**data: Any)
-
Expand source code
class DataGenerationConfig(BaseModel): save_outputs: Optional[bool] = None save_outputs_location: Optional[str] = None save_outputs_path: Optional[str] = None save_inputs: Optional[bool] = None save_inputs_location: Optional[str] = None default_filename: Optional[str] = None
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var default_filename : str | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var save_inputs : bool | None
-
The type of the None singleton.
var save_inputs_location : str | None
-
The type of the None singleton.
var save_outputs : bool | None
-
The type of the None singleton.
var save_outputs_location : str | None
-
The type of the None singleton.
var save_outputs_path : str | None
-
The type of the None singleton.
class DockerParams (**data: Any)
-
Expand source code
class DockerParams(BaseModel): docker_image: str docker_command: Optional[str] = "" docker_num_gpus: Optional[int] = 0 docker_env_vars: Optional[Dict] = None input_dir: Optional[str] = None input_ipfs_hash: Optional[str] = None docker_input_dir: Optional[str] = None docker_output_dir: Optional[str] = None save_location: str = "node" class Config: allow_mutation = True class Config: allow_mutation = True json_encoders = { datetime: lambda v: v.isoformat(), } def model_dict(self): model_dict = self.dict() for key, value in model_dict.items(): if isinstance(value, datetime): model_dict[key] = value.isoformat() return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var Config
-
The type of the None singleton.
var docker_command : str | None
-
The type of the None singleton.
var docker_env_vars : Dict | None
-
The type of the None singleton.
var docker_image : str
-
The type of the None singleton.
var docker_input_dir : str | None
-
The type of the None singleton.
var docker_num_gpus : int | None
-
The type of the None singleton.
var docker_output_dir : str | None
-
The type of the None singleton.
var input_dir : str | None
-
The type of the None singleton.
var input_ipfs_hash : str | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var save_location : str
-
The type of the None singleton.
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): model_dict = self.dict() for key, value in model_dict.items(): if isinstance(value, datetime): model_dict[key] = value.isoformat() return model_dict
class EnvironmentConfig (**data: Any)
-
Expand source code
class EnvironmentConfig(BaseModel): config_name: Optional[str] = "environment_config" environment_type: Optional[str] = None
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var config_name : str | None
-
The type of the None singleton.
var environment_type : str | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
class EnvironmentDeployment (**data: Any)
-
Expand source code
class EnvironmentDeployment(BaseModel): node: Union[NodeConfigUser, NodeConfig, Dict] name: Optional[str] = None module: Optional[Dict] = None config: Optional[EnvironmentConfig] = None
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var config : EnvironmentConfig | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var module : Dict | None
-
The type of the None singleton.
var name : str | None
-
The type of the None singleton.
var node : NodeConfigUser | NodeConfig | Dict
-
The type of the None singleton.
class EnvironmentRun (**data: Any)
-
Expand source code
class EnvironmentRun(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: EnvironmentDeployment orchestrator_runs: List['OrchestratorRun'] = [] status: str = "pending" error: bool = False id: Optional[str] = None results: list[str] = [] error_message: Optional[str] = None created_time: Optional[str] = None start_processing_time: Optional[str] = None completed_time: Optional[str] = None duration: Optional[float] = None input_schema_ipfs_hash: Optional[str] = None signature: str
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var completed_time : str | None
-
The type of the None singleton.
var consumer_id : str
-
The type of the None singleton.
var created_time : str | None
-
The type of the None singleton.
var deployment : EnvironmentDeployment
-
The type of the None singleton.
var duration : float | None
-
The type of the None singleton.
var error : bool
-
The type of the None singleton.
var error_message : str | None
-
The type of the None singleton.
var id : str | None
-
The type of the None singleton.
var input_schema_ipfs_hash : str | None
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var orchestrator_runs : List[OrchestratorRun]
-
The type of the None singleton.
var results : list[str]
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
var start_processing_time : str | None
-
The type of the None singleton.
var status : str
-
The type of the None singleton.
class EnvironmentRunInput (**data: Any)
-
Expand source code
class EnvironmentRunInput(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: EnvironmentDeployment orchestrator_runs: List['OrchestratorRun'] = [] signature: str def model_dict(self): model_dict = self.dict() return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var consumer_id : str
-
The type of the None singleton.
var deployment : EnvironmentDeployment
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var orchestrator_runs : List[OrchestratorRun]
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): model_dict = self.dict() return model_dict
class KBConfig (**data: Any)
-
Expand source code
class KBConfig(BaseModel): config_name: Optional[str] = None storage_type: StorageType path: str schema: Dict[str, Any] options: Optional[Dict[str, Any]] = None def model_dict(self): if isinstance(self.storage_type, StorageType): self.storage_type = self.storage_type.value model_dict = self.dict() model_dict['storage_type'] = self.storage_type return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var config_name : str | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var options : Dict[str, Any] | None
-
The type of the None singleton.
var path : str
-
The type of the None singleton.
var storage_type : StorageType
-
The type of the None singleton.
Static methods
def schema(by_alias: bool = True, ref_template: str = '#/$defs/{model}') ‑> Dict[str, Any]
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): if isinstance(self.storage_type, StorageType): self.storage_type = self.storage_type.value model_dict = self.dict() model_dict['storage_type'] = self.storage_type return model_dict
class KBDeployment (**data: Any)
-
Expand source code
class KBDeployment(BaseModel): node: Union[NodeConfigUser, NodeConfig, Dict] name: Optional[str] = None module: Optional[Dict] = None config: Optional[KBConfig] = None def model_dict(self): model_dict = self.dict() if isinstance(self.config, KBConfig): model_dict['config'] = self.config.model_dict() return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var config : KBConfig | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var module : Dict | None
-
The type of the None singleton.
var name : str | None
-
The type of the None singleton.
var node : NodeConfigUser | NodeConfig | Dict
-
The type of the None singleton.
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): model_dict = self.dict() if isinstance(self.config, KBConfig): model_dict['config'] = self.config.model_dict() return model_dict
class KBRun (**data: Any)
-
Expand source code
class KBRun(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: KBDeployment orchestrator_runs: List['OrchestratorRun'] = [] status: str = "pending" error: bool = False id: Optional[str] = None results: list[Optional[str]] = [] error_message: Optional[str] = None created_time: Optional[str] = None start_processing_time: Optional[str] = None completed_time: Optional[str] = None duration: Optional[float] = None signature: str
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var completed_time : str | None
-
The type of the None singleton.
var consumer_id : str
-
The type of the None singleton.
var created_time : str | None
-
The type of the None singleton.
var deployment : KBDeployment
-
The type of the None singleton.
var duration : float | None
-
The type of the None singleton.
var error : bool
-
The type of the None singleton.
var error_message : str | None
-
The type of the None singleton.
var id : str | None
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var orchestrator_runs : List[OrchestratorRun]
-
The type of the None singleton.
var results : list[str | None]
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
var start_processing_time : str | None
-
The type of the None singleton.
var status : str
-
The type of the None singleton.
class KBRunInput (**data: Any)
-
Expand source code
class KBRunInput(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: KBDeployment orchestrator_runs: List['OrchestratorRun'] = [] signature: str def model_dict(self): model_dict = self.dict() if isinstance(self.deployment, KBDeployment): model_dict['deployment'] = self.deployment.model_dict() return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var consumer_id : str
-
The type of the None singleton.
var deployment : KBDeployment
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var orchestrator_runs : List[OrchestratorRun]
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): model_dict = self.dict() if isinstance(self.deployment, KBDeployment): model_dict['deployment'] = self.deployment.model_dict() return model_dict
class LLMClientType (*args, **kwds)
-
Expand source code
class LLMClientType(str, Enum): OPENAI = "openai" AZURE_OPENAI = "azure_openai" ANTHROPIC = "anthropic" VLLM = "vllm" LITELLM = "litellm" OLLAMA = "ollama" STABILITY = "stability"
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
Ancestors
- builtins.str
- enum.Enum
Class variables
var ANTHROPIC
-
The type of the None singleton.
var AZURE_OPENAI
-
The type of the None singleton.
var LITELLM
-
The type of the None singleton.
var OLLAMA
-
The type of the None singleton.
var OPENAI
-
The type of the None singleton.
var STABILITY
-
The type of the None singleton.
var VLLM
-
The type of the None singleton.
class LLMConfig (**data: Any)
-
Expand source code
class LLMConfig(BaseModel): config_name: Optional[str] = "llm_config" client: Optional[LLMClientType] = None model: Optional[str] = None max_tokens: Optional[int] = None temperature: Optional[float] = None api_base: Optional[str] = None
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var api_base : str | None
-
The type of the None singleton.
var client : LLMClientType | None
-
The type of the None singleton.
var config_name : str | None
-
The type of the None singleton.
var max_tokens : int | None
-
The type of the None singleton.
var model : str | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var temperature : float | None
-
The type of the None singleton.
class MemoryConfig (**data: Any)
-
Expand source code
class MemoryConfig(BaseModel): config_name: Optional[str] = None storage_type: StorageType path: str schema: Dict[str, Any] options: Optional[Dict[str, Any]] = None def model_dict(self): if isinstance(self.storage_type, StorageType): self.storage_type = self.storage_type.value model_dict = self.dict() model_dict['storage_type'] = self.storage_type return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var config_name : str | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var options : Dict[str, Any] | None
-
The type of the None singleton.
var path : str
-
The type of the None singleton.
var storage_type : StorageType
-
The type of the None singleton.
Static methods
def schema(by_alias: bool = True, ref_template: str = '#/$defs/{model}') ‑> Dict[str, Any]
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): if isinstance(self.storage_type, StorageType): self.storage_type = self.storage_type.value model_dict = self.dict() model_dict['storage_type'] = self.storage_type return model_dict
class MemoryDeployment (**data: Any)
-
Expand source code
class MemoryDeployment(BaseModel): node: Union[NodeConfigUser, NodeConfig, Dict] name: Optional[str] = None module: Optional[Dict] = None config: Optional[MemoryConfig] = None def model_dict(self): model_dict = self.dict() if isinstance(self.config, MemoryConfig): model_dict['config'] = self.config.model_dict() return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var config : MemoryConfig | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var module : Dict | None
-
The type of the None singleton.
var name : str | None
-
The type of the None singleton.
var node : NodeConfigUser | NodeConfig | Dict
-
The type of the None singleton.
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): model_dict = self.dict() if isinstance(self.config, MemoryConfig): model_dict['config'] = self.config.model_dict() return model_dict
class MemoryRun (**data: Any)
-
Expand source code
class MemoryRun(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: MemoryDeployment orchestrator_runs: List['OrchestratorRun'] = [] status: str = "pending" error: bool = False id: Optional[str] = None results: list[Optional[str]] = [] error_message: Optional[str] = None created_time: Optional[str] = None start_processing_time: Optional[str] = None completed_time: Optional[str] = None duration: Optional[float] = None signature: str
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var completed_time : str | None
-
The type of the None singleton.
var consumer_id : str
-
The type of the None singleton.
var created_time : str | None
-
The type of the None singleton.
var deployment : MemoryDeployment
-
The type of the None singleton.
var duration : float | None
-
The type of the None singleton.
var error : bool
-
The type of the None singleton.
var error_message : str | None
-
The type of the None singleton.
var id : str | None
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var orchestrator_runs : List[OrchestratorRun]
-
The type of the None singleton.
var results : list[str | None]
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
var start_processing_time : str | None
-
The type of the None singleton.
var status : str
-
The type of the None singleton.
class MemoryRunInput (**data: Any)
-
Expand source code
class MemoryRunInput(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: MemoryDeployment orchestrator_runs: List['OrchestratorRun'] = [] signature: str def model_dict(self): model_dict = self.dict() if isinstance(self.deployment, MemoryDeployment): model_dict['deployment'] = self.deployment.model_dict() return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var consumer_id : str
-
The type of the None singleton.
var deployment : MemoryDeployment
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var orchestrator_runs : List[OrchestratorRun]
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): model_dict = self.dict() if isinstance(self.deployment, MemoryDeployment): model_dict['deployment'] = self.deployment.model_dict() return model_dict
class ModelResponse (**data: Any)
-
Expand source code
class ModelResponse(BaseModel): id: str choices: List[Choices] created: int model: str object: str
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var choices : List[Choices]
-
The type of the None singleton.
var created : int
-
The type of the None singleton.
var id : str
-
The type of the None singleton.
var model : str
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var object : str
-
The type of the None singleton.
class NodeConfig (**data: Any)
-
Expand source code
class NodeConfig(BaseModel): id: str owner: str public_key: str ip: str = Field(default="localhost") server_type: str = Field(default="ws") http_port: int = Field(default=7001) num_servers: int = Field(default=1) provider_types: List[str] = Field(default=["models", "storage", "modules"]) servers: List[NodeServer] models: List[str] docker_jobs: bool ports: Optional[List[int]] = None routing_type: Optional[str] = Field(default="direct") routing_url: Optional[str] = Field(default=None) num_gpus: Optional[int] = Field(default=None) arch: Optional[str] = Field(default=None) os: Optional[str] = Field(default=None) ram: Optional[int] = Field(default=None) vram: Optional[int] = Field(default=None) class Config: allow_mutation = True
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var Config
-
The type of the None singleton.
var arch : str | None
-
The type of the None singleton.
var docker_jobs : bool
-
The type of the None singleton.
var http_port : int
-
The type of the None singleton.
var id : str
-
The type of the None singleton.
var ip : str
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var models : List[str]
-
The type of the None singleton.
var num_gpus : int | None
-
The type of the None singleton.
var num_servers : int
-
The type of the None singleton.
var os : str | None
-
The type of the None singleton.
var owner : str
-
The type of the None singleton.
var ports : List[int] | None
-
The type of the None singleton.
var provider_types : List[str]
-
The type of the None singleton.
var public_key : str
-
The type of the None singleton.
var ram : int | None
-
The type of the None singleton.
var routing_type : str | None
-
The type of the None singleton.
var routing_url : str | None
-
The type of the None singleton.
var server_type : str
-
The type of the None singleton.
var servers : List[NodeServer]
-
The type of the None singleton.
var vram : int | None
-
The type of the None singleton.
class NodeConfigUser (**data: Any)
-
Expand source code
class NodeConfigUser(BaseModel): ip: str http_port: Optional[int] = None server_type: Optional[str] = None
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var http_port : int | None
-
The type of the None singleton.
var ip : str
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var server_type : str | None
-
The type of the None singleton.
class NodeServer (**data: Any)
-
Expand source code
class NodeServer(BaseModel): server_type: str port: int node_id: str
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var model_config
-
The type of the None singleton.
var node_id : str
-
The type of the None singleton.
var port : int
-
The type of the None singleton.
var server_type : str
-
The type of the None singleton.
class OrchestratorConfig (**data: Any)
-
Expand source code
class OrchestratorConfig(BaseModel): config_name: Optional[str] = "orchestrator_config" max_rounds: Optional[int] = 5
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var config_name : str | None
-
The type of the None singleton.
var max_rounds : int | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
class OrchestratorDeployment (**data: Any)
-
Expand source code
class OrchestratorDeployment(BaseModel): node: Union[NodeConfigUser, NodeConfig, Dict] name: Optional[str] = None module: Optional[Dict] = None config: Optional[OrchestratorConfig] = None agent_deployments: Optional[List[AgentDeployment]] = None environment_deployments: Optional[List[EnvironmentDeployment]] = None kb_deployments: Optional[List[KBDeployment]] = None memory_deployments: Optional[List[MemoryDeployment]] = None
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var agent_deployments : List[AgentDeployment] | None
-
The type of the None singleton.
var config : OrchestratorConfig | None
-
The type of the None singleton.
var environment_deployments : List[EnvironmentDeployment] | None
-
The type of the None singleton.
var kb_deployments : List[KBDeployment] | None
-
The type of the None singleton.
var memory_deployments : List[MemoryDeployment] | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var module : Dict | None
-
The type of the None singleton.
var name : str | None
-
The type of the None singleton.
var node : NodeConfigUser | NodeConfig | Dict
-
The type of the None singleton.
class OrchestratorRun (**data: Any)
-
Expand source code
class OrchestratorRun(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: OrchestratorDeployment status: str = "pending" error: bool = False id: Optional[str] = None results: list[str] = [] error_message: Optional[str] = None created_time: Optional[str] = None start_processing_time: Optional[str] = None completed_time: Optional[str] = None duration: Optional[float] = None agent_runs: List['AgentRun'] = [] input_schema_ipfs_hash: Optional[str] = None signature: str
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var agent_runs : List[AgentRun]
-
The type of the None singleton.
var completed_time : str | None
-
The type of the None singleton.
var consumer_id : str
-
The type of the None singleton.
var created_time : str | None
-
The type of the None singleton.
var deployment : OrchestratorDeployment
-
The type of the None singleton.
var duration : float | None
-
The type of the None singleton.
var error : bool
-
The type of the None singleton.
var error_message : str | None
-
The type of the None singleton.
var id : str | None
-
The type of the None singleton.
var input_schema_ipfs_hash : str | None
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var results : list[str]
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
var start_processing_time : str | None
-
The type of the None singleton.
var status : str
-
The type of the None singleton.
class OrchestratorRunInput (**data: Any)
-
Expand source code
class OrchestratorRunInput(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: OrchestratorDeployment signature: str def model_dict(self): model_dict = self.dict() return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var consumer_id : str
-
The type of the None singleton.
var deployment : OrchestratorDeployment
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): model_dict = self.dict() return model_dict
class ToolConfig (**data: Any)
-
Expand source code
class ToolConfig(BaseModel): config_name: Optional[str] = None llm_config: Optional[LLMConfig] = None
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var config_name : str | None
-
The type of the None singleton.
var llm_config : LLMConfig | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
class ToolDeployment (**data: Any)
-
Expand source code
class ToolDeployment(BaseModel): node: Union[NodeConfigUser, NodeConfig, Dict] name: Optional[str] = None module: Optional[Dict] = None config: Optional[ToolConfig] = None data_generation_config: Optional[DataGenerationConfig] = None
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var config : ToolConfig | None
-
The type of the None singleton.
var data_generation_config : DataGenerationConfig | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var module : Dict | None
-
The type of the None singleton.
var name : str | None
-
The type of the None singleton.
var node : NodeConfigUser | NodeConfig | Dict
-
The type of the None singleton.
class ToolRun (**data: Any)
-
Expand source code
class ToolRun(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: ToolDeployment agent_run: Optional[AgentRun] = None status: str = "pending" error: bool = False id: Optional[str] = None results: list[str] = [] error_message: Optional[str] = None created_time: Optional[str] = None start_processing_time: Optional[str] = None completed_time: Optional[str] = None duration: Optional[float] = None signature: str
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var agent_run : AgentRun | None
-
The type of the None singleton.
var completed_time : str | None
-
The type of the None singleton.
var consumer_id : str
-
The type of the None singleton.
var created_time : str | None
-
The type of the None singleton.
var deployment : ToolDeployment
-
The type of the None singleton.
var duration : float | None
-
The type of the None singleton.
var error : bool
-
The type of the None singleton.
var error_message : str | None
-
The type of the None singleton.
var id : str | None
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var results : list[str]
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
var start_processing_time : str | None
-
The type of the None singleton.
var status : str
-
The type of the None singleton.
class ToolRunInput (**data: Any)
-
Expand source code
class ToolRunInput(BaseModel): consumer_id: str inputs: Optional[Union[Dict, BaseModel, DockerParams]] = None deployment: ToolDeployment agent_run: Optional[AgentRun] = None signature: str def model_dict(self): if isinstance(self.inputs, BaseModel): self.inputs = self.inputs.model_dump() model_dict = self.dict() model_dict['inputs'] = self.inputs return model_dict
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var agent_run : AgentRun | None
-
The type of the None singleton.
var consumer_id : str
-
The type of the None singleton.
var deployment : ToolDeployment
-
The type of the None singleton.
var inputs : Dict | pydantic.main.BaseModel | DockerParams | None
-
The type of the None singleton.
var model_config
-
The type of the None singleton.
var signature : str
-
The type of the None singleton.
Methods
def model_dict(self)
-
Expand source code
def model_dict(self): if isinstance(self.inputs, BaseModel): self.inputs = self.inputs.model_dump() model_dict = self.dict() model_dict['inputs'] = self.inputs return model_dict
class User (**data: Any)
-
Expand source code
class User(BaseModel): id: str
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__
- The names of the class variables defined on the model.
__private_attributes__
- Metadata about the private attributes of the model.
__signature__
- The synthesized
__init__
[Signature
][inspect.Signature] of the model. __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
__pydantic_core_schema__
- The core schema of the model.
__pydantic_custom_init__
- Whether the model has a custom
__init__
function. __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1. __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
__pydantic_post_init__
- The name of the post-init method for the model, if defined.
__pydantic_root_model__
- Whether the model is a [
RootModel
][pydantic.root_model.RootModel]. __pydantic_serializer__
- The
pydantic-core
SchemaSerializer
used to dump instances of the model. __pydantic_validator__
- The
pydantic-core
SchemaValidator
used to validate instances of the model. __pydantic_fields__
- A dictionary of field names and their corresponding [
FieldInfo
][pydantic.fields.FieldInfo] objects. __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [
ComputedFieldInfo
][pydantic.fields.ComputedFieldInfo] objects. __pydantic_extra__
- A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
. __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
__pydantic_private__
- Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Ancestors
- pydantic.main.BaseModel
Class variables
var id : str
-
The type of the None singleton.
var model_config
-
The type of the None singleton.