Contains methods to instantiate TaskModel and ProtocolModel but it does not save the instances to the database, it only create th objects
Functions
Create a protocol model from a ProcessConfigDTO. The protocol is fully created from the dto and the process type is not used. It can create a protocol where the type does not exist in the system.
Warning, it does not initialize the graph.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
protocol_config_dto | ProcessConfigDTO |
Return type:
ProtocolModel |
Return type:
TaskModel |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
process_type | Type | ||
config_params | Dict | ||
instance_name | str | ||
community_agent_version_id | str |
Return type:
TaskModel |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
typing_name | str | ||
config_params | Dict | ||
instance_name | str |
Return type:
TaskModel |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
instance_name | str | ||
name | str | ||
protocol_type | Type | <class 'gws_core.protocol.protocol.Protocol'> |
Return type:
ProtocolModel |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
protocol_type | Type | ||
config_params | Dict | ||
instance_name | str | ||
name | str |
Return type:
ProtocolModel |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
resouce_id | str |
Return type:
TaskModel |
Create a task model from a ProcessConfigDTO. The task is fully created from the dto and the process type is not used. It can create a task where the type does not exist in the system.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
task_config_dto | ProcessConfigDTO | Object containing the task configuration |
Return type:
TaskModel |
Create a task model from a task type. The specs are created from the task type.
:raises BadRequestException: description :raises BadRequestException: description
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
task_type | Type | _description_ [task] | |
config_params | Optional | _description_, defaults to none [configparamsdict], optional | |
instance_name | Optional | _description_, defaults to none [str], optional | |
inputs_dto | Optional | If provided, override the input spec of the task (useful for dynamic io), defaults to none [iodto], optional | |
outputs_dto | Optional | If provided, override the output spec of the task (useful for dynamic io), defaults to none [iodto], optional | |
name | Optional | _description_, defaults to none [str], optional | |
community_agent_version_id | Optional | _description_, defaults to none [str], optional | |
style | Optional | _description_, defaults to none [typingstyle], optional |
Return type:
TaskModel |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
typing_name | str | ||
config_params | Dict | ||
instance_name | str |
Return type:
TaskModel |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
resource_typing_name | str |
Return type:
TaskModel |