phi.runs.backbone_uris
python
phi.runs.backbone_uris(run_id=run_id)Returns builtins.list[str].
Parameters
| Name | Type | Default |
|---|---|---|
| run_idrequired | str | uuid.UUID | |
| pipeline_node_idoptional | str | None | None |
phi.runs.cancel
python
phi.runs.cancel(run_id=run_id)Parameters
| Name | Type |
|---|---|
| run_idrequired | str | uuid.UUID |
phi.runs.dag
python
phi.runs.dag(run_id=run_id)Returns RunDagResponse.
Parameters
| Name | Type |
|---|---|
| run_idrequired | str | uuid.UUID |
RunDagResponse fields and schemaShowHide
Fields
| Name | Type | Description |
|---|---|---|
| edgesrequired | (object)[] | |
| nodesrequired | (object)[] | |
| overall_statusrequired | string | |
| pipeline_typerequired | string | |
| run_idrequired | string | format: uuid |
JSON schema
{
"type": "object",
"required": [
"run_id",
"pipeline_type",
"overall_status",
"nodes",
"edges"
],
"properties": {
"edges": {
"type": "array",
"items": {
"$ref": "#/$defs/DagEdge"
}
},
"nodes": {
"type": "array",
"items": {
"$ref": "#/$defs/DagNode"
}
},
"overall_status": {
"type": "string"
},
"pipeline_type": {
"type": "string"
},
"run_id": {
"type": "string",
"format": "uuid"
}
},
"$defs": {
"DagEdge": {
"type": "object",
"required": [
"from_node",
"to_node"
],
"properties": {
"from_node": {
"type": "string"
},
"to_node": {
"type": "string"
}
}
},
"DagNode": {
"type": "object",
"required": [
"id",
"stage_type",
"batch_index",
"status"
],
"properties": {
"batch_index": {
"type": "integer"
},
"completed_at": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"error": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"error_code": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"exit_code": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"id": {
"type": "string"
},
"k8s_job_name": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"progress_pct": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"recommended_action": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"stage_type": {
"type": "string"
},
"started_at": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
}
}
}
}
}phi.runs.estimate
Price a run. The response is the amount a submit would reserve.
python
phi.runs.estimate(project_id=project_id, submit=submit)Returns RunEstimateResponse.
Parameters
| Name | Type |
|---|---|
| project_idrequired | str | uuid.UUID |
| submitrequired | RunSubmit | RunEstimate |
RunEstimate fields and schemaShowHide
Fields
| Name | Type | Default |
|---|---|---|
| inputsoptional | object | |
| num_designsoptional | integer or null | null |
| paramsoptional | object | |
| pipeline_typeoptional | string | "BINDER_DESIGN" |
JSON schema
{
"type": "object",
"properties": {
"inputs": {
"type": "object",
"additionalProperties": true
},
"num_designs": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"params": {
"type": "object",
"additionalProperties": true
},
"pipeline_type": {
"type": "string",
"default": "BINDER_DESIGN"
}
}
}RunEstimateResponse fields and schemaShowHide
Fields
| Name | Type |
|---|---|
| breakdownrequired | (object)[] |
| estimated_creditsrequired | integer |
| pipeline_typerequired | string |
JSON schema
{
"type": "object",
"required": [
"pipeline_type",
"estimated_credits",
"breakdown"
],
"properties": {
"breakdown": {
"type": "array",
"items": {
"$ref": "#/$defs/QuoteLine"
}
},
"estimated_credits": {
"type": "integer"
},
"pipeline_type": {
"type": "string"
}
},
"$defs": {
"QuoteLine": {
"type": "object",
"required": [
"stage",
"unit",
"count",
"cents"
],
"properties": {
"cents": {
"type": "integer"
},
"count": {
"type": "integer"
},
"stage": {
"type": "string"
},
"unit": {
"type": "string"
}
}
}
}
}RunSubmit fields and schemaShowHide
Fields
| Name | Type | Default |
|---|---|---|
| batch_idoptional | string or null | null |
| contextoptional | object or null | null |
| dataset_idoptional | string or null | null |
| idempotency_keyoptional | string or null | null |
| inputsrequired | object | |
| nameoptional | string or null | null |
| paramsoptional | object | |
| pipeline_typeoptional | string | "BINDER_DESIGN" |
JSON schema
{
"type": "object",
"required": [
"inputs"
],
"properties": {
"batch_id": {
"default": null,
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 120
},
{
"type": "null"
}
]
},
"context": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"dataset_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"idempotency_key": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"inputs": {
"$ref": "#/$defs/RunInputs"
},
"name": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"params": {
"type": "object",
"additionalProperties": true
},
"pipeline_type": {
"type": "string",
"default": "BINDER_DESIGN"
}
},
"$defs": {
"RunInputs": {
"type": "object",
"properties": {
"backbone_cifs_gcs_prefix": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"backbone_gcs_prefix": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"backbone_uris": {
"default": null,
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"binder_chain_id": {
"type": "string",
"default": "A"
},
"binder_pdbs": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"design_set": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"design_spec_entry": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"design_spec_files": {
"default": null,
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
{
"type": "null"
}
]
},
"design_spec_gcs_prefix": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"design_spec_yaml": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"sequences": {
"default": null,
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"additionalProperties": true
}
]
}
},
{
"type": "null"
}
]
},
"source_pipeline_node_id": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"source_run_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"target_chain_id": {
"type": "string",
"default": "A"
},
"target_cif": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"target_cif_uri": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"target_pdb": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"target_pdb_uri": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
}
}
}phi.runs.get
python
phi.runs.get(run_id=run_id)Returns RunResponse.
Parameters
| Name | Type |
|---|---|
| run_idrequired | str | uuid.UUID |
RunResponse fields and schemaShowHide
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| batch_idoptional | string or null | null | |
| completed_atoptional | string or null | null | |
| consumed_creditsrequired | integer | ||
| contextoptional | object or null | null | |
| created_atrequired | string | format: date-time | |
| dataset_idoptional | string or null | null | |
| erroroptional | string or null | null | |
| error_codeoptional | string or null | null | |
| estimated_creditsrequired | integer | ||
| exit_codeoptional | integer or null | null | |
| idrequired | string | format: uuid | |
| input_manifest_urioptional | string or null | null | |
| inputsoptional | object or null | null | |
| nameoptional | string or null | null | |
| paramsoptional | object or null | null | |
| pipeline_typerequired | string | ||
| project_idoptional | string or null | null | |
| recommended_actionoptional | string or null | null | |
| source_run_idoptional | string or null | null | |
| statusrequired | string | ||
| summaryoptional | object or null | null | |
| updated_atrequired | string | format: date-time |
JSON schema
{
"type": "object",
"required": [
"id",
"pipeline_type",
"status",
"estimated_credits",
"consumed_credits",
"created_at",
"updated_at"
],
"properties": {
"batch_id": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"completed_at": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"consumed_credits": {
"type": "integer"
},
"context": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"created_at": {
"type": "string",
"format": "date-time"
},
"dataset_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"error": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"error_code": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"estimated_credits": {
"type": "integer"
},
"exit_code": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"id": {
"type": "string",
"format": "uuid"
},
"input_manifest_uri": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"inputs": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"name": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"params": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"pipeline_type": {
"type": "string"
},
"project_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"recommended_action": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"source_run_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"summary": {
"default": null,
"anyOf": [
{
"$ref": "#/$defs/RunSummary"
},
{
"type": "null"
}
]
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"$defs": {
"RunHeadline": {
"type": "object",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string"
},
"pass_count": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"value": {
"type": "number"
}
}
},
"RunSummary": {
"type": "object",
"properties": {
"duration_seconds": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"headline": {
"default": null,
"anyOf": [
{
"$ref": "#/$defs/RunHeadline"
},
{
"type": "null"
}
]
},
"sample_count": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
}
}
}
}phi.runs.iter
python
phi.runs.iter(project_id=project_id)Returns Iterator[RunResponse].
Parameters
| Name | Type | Default |
|---|---|---|
| project_idrequired | str | uuid.UUID | |
| page_sizeoptional | int | 20 |
| batch_idoptional | str | None | None |
| source_run_idoptional | str | uuid.UUID | None | None |
RunResponse fields and schemaShowHide
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| batch_idoptional | string or null | null | |
| completed_atoptional | string or null | null | |
| consumed_creditsrequired | integer | ||
| contextoptional | object or null | null | |
| created_atrequired | string | format: date-time | |
| dataset_idoptional | string or null | null | |
| erroroptional | string or null | null | |
| error_codeoptional | string or null | null | |
| estimated_creditsrequired | integer | ||
| exit_codeoptional | integer or null | null | |
| idrequired | string | format: uuid | |
| input_manifest_urioptional | string or null | null | |
| inputsoptional | object or null | null | |
| nameoptional | string or null | null | |
| paramsoptional | object or null | null | |
| pipeline_typerequired | string | ||
| project_idoptional | string or null | null | |
| recommended_actionoptional | string or null | null | |
| source_run_idoptional | string or null | null | |
| statusrequired | string | ||
| summaryoptional | object or null | null | |
| updated_atrequired | string | format: date-time |
JSON schema
{
"type": "object",
"required": [
"id",
"pipeline_type",
"status",
"estimated_credits",
"consumed_credits",
"created_at",
"updated_at"
],
"properties": {
"batch_id": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"completed_at": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"consumed_credits": {
"type": "integer"
},
"context": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"created_at": {
"type": "string",
"format": "date-time"
},
"dataset_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"error": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"error_code": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"estimated_credits": {
"type": "integer"
},
"exit_code": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"id": {
"type": "string",
"format": "uuid"
},
"input_manifest_uri": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"inputs": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"name": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"params": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"pipeline_type": {
"type": "string"
},
"project_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"recommended_action": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"source_run_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"summary": {
"default": null,
"anyOf": [
{
"$ref": "#/$defs/RunSummary"
},
{
"type": "null"
}
]
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"$defs": {
"RunHeadline": {
"type": "object",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string"
},
"pass_count": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"value": {
"type": "number"
}
}
},
"RunSummary": {
"type": "object",
"properties": {
"duration_seconds": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"headline": {
"default": null,
"anyOf": [
{
"$ref": "#/$defs/RunHeadline"
},
{
"type": "null"
}
]
},
"sample_count": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
}
}
}
}phi.runs.list
A project's runs. `source_run_id` narrows them to the runs sourced from one run.
python
phi.runs.list(project_id=project_id)Returns CursorList[RunResponse].
Parameters
| Name | Type | Default |
|---|---|---|
| project_idrequired | str | uuid.UUID | |
| pageoptional | int | 1 |
| page_sizeoptional | int | 20 |
| cursoroptional | str | None | None |
| batch_idoptional | str | None | None |
| source_run_idoptional | str | uuid.UUID | None | None |
RunResponse fields and schemaShowHide
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| batch_idoptional | string or null | null | |
| completed_atoptional | string or null | null | |
| consumed_creditsrequired | integer | ||
| contextoptional | object or null | null | |
| created_atrequired | string | format: date-time | |
| dataset_idoptional | string or null | null | |
| erroroptional | string or null | null | |
| error_codeoptional | string or null | null | |
| estimated_creditsrequired | integer | ||
| exit_codeoptional | integer or null | null | |
| idrequired | string | format: uuid | |
| input_manifest_urioptional | string or null | null | |
| inputsoptional | object or null | null | |
| nameoptional | string or null | null | |
| paramsoptional | object or null | null | |
| pipeline_typerequired | string | ||
| project_idoptional | string or null | null | |
| recommended_actionoptional | string or null | null | |
| source_run_idoptional | string or null | null | |
| statusrequired | string | ||
| summaryoptional | object or null | null | |
| updated_atrequired | string | format: date-time |
JSON schema
{
"type": "object",
"required": [
"id",
"pipeline_type",
"status",
"estimated_credits",
"consumed_credits",
"created_at",
"updated_at"
],
"properties": {
"batch_id": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"completed_at": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"consumed_credits": {
"type": "integer"
},
"context": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"created_at": {
"type": "string",
"format": "date-time"
},
"dataset_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"error": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"error_code": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"estimated_credits": {
"type": "integer"
},
"exit_code": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"id": {
"type": "string",
"format": "uuid"
},
"input_manifest_uri": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"inputs": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"name": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"params": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"pipeline_type": {
"type": "string"
},
"project_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"recommended_action": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"source_run_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"summary": {
"default": null,
"anyOf": [
{
"$ref": "#/$defs/RunSummary"
},
{
"type": "null"
}
]
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"$defs": {
"RunHeadline": {
"type": "object",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string"
},
"pass_count": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"value": {
"type": "number"
}
}
},
"RunSummary": {
"type": "object",
"properties": {
"duration_seconds": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"headline": {
"default": null,
"anyOf": [
{
"$ref": "#/$defs/RunHeadline"
},
{
"type": "null"
}
]
},
"sample_count": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
}
}
}
}phi.runs.pipelines
Named pipelines this deployment accepts; job types come from JobsResource.
python
phi.runs.pipelines()Returns PipelinesResponse.
PipelinesResponse fields and schemaShowHide
Fields
| Name | Type |
|---|---|
| pipelinesrequired | (object)[] |
JSON schema
{
"type": "object",
"required": [
"pipelines"
],
"properties": {
"pipelines": {
"type": "array",
"items": {
"$ref": "#/$defs/PipelineTypeResponse"
}
}
},
"$defs": {
"CatalogPrice": {
"type": "object",
"required": [
"credits",
"count",
"unit"
],
"properties": {
"count": {
"type": "integer"
},
"credits": {
"type": "integer"
},
"unit": {
"type": "string"
}
}
},
"StagePricing": {
"type": "object",
"required": [
"stage",
"unit",
"cents",
"gpu"
],
"properties": {
"basket": {
"type": "integer",
"default": 1
},
"cap": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"cents": {
"type": "integer"
},
"gpu": {
"type": "string"
},
"included": {
"type": "integer",
"default": 0
},
"per": {
"type": "integer",
"default": 1
},
"stage": {
"type": "string"
},
"start_cents": {
"type": "integer",
"default": 0
},
"unit": {
"type": "string"
}
}
},
"PipelineTypeResponse": {
"type": "object",
"required": [
"pipeline_type",
"credit_cost",
"available_as_job",
"default_params",
"available",
"gate_reason",
"environments"
],
"properties": {
"available": {
"type": "boolean"
},
"available_as_job": {
"type": "boolean"
},
"catalog_price": {
"default": null,
"anyOf": [
{
"$ref": "#/$defs/CatalogPrice"
},
{
"type": "null"
}
]
},
"credit_cost": {
"type": "integer"
},
"default_params": {
"type": "object",
"additionalProperties": true
},
"environments": {
"type": "array",
"items": {
"type": "string"
}
},
"gate_reason": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"pipeline_type": {
"type": "string"
},
"pricing": {
"type": "array",
"items": {
"$ref": "#/$defs/StagePricing"
}
},
"rate_revision": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"typical_seconds": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
}
}
}
}phi.runs.resume
Resume a FAILED run. The server rejects any other status with 409.
python
phi.runs.resume(run_id=run_id)Returns RunSubmitResponse.
Parameters
| Name | Type |
|---|---|
| run_idrequired | str | uuid.UUID |
RunSubmitResponse fields and schemaShowHide
Fields
| Name | Type | Default |
|---|---|---|
| batch_idoptional | string or null | null |
| dataset_idoptional | string or null | null |
| estimated_creditsoptional | integer or null | null |
| run_idrequired | string | |
| source_run_idoptional | string or null | null |
| statusrequired | string | |
| status_urloptional | string or null | null |
JSON schema
{
"type": "object",
"required": [
"run_id",
"status"
],
"properties": {
"batch_id": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"dataset_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"estimated_credits": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"run_id": {
"type": "string"
},
"source_run_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"status_url": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
}phi.runs.submit
python
phi.runs.submit(project_id=project_id, submit=submit)Returns RunSubmitResponse.
Parameters
| Name | Type |
|---|---|
| project_idrequired | str | uuid.UUID |
| submitrequired | RunSubmit |
RunSubmit fields and schemaShowHide
Fields
| Name | Type | Default |
|---|---|---|
| batch_idoptional | string or null | null |
| contextoptional | object or null | null |
| dataset_idoptional | string or null | null |
| idempotency_keyoptional | string or null | null |
| inputsrequired | object | |
| nameoptional | string or null | null |
| paramsoptional | object | |
| pipeline_typeoptional | string | "BINDER_DESIGN" |
JSON schema
{
"type": "object",
"required": [
"inputs"
],
"properties": {
"batch_id": {
"default": null,
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 120
},
{
"type": "null"
}
]
},
"context": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"dataset_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"idempotency_key": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"inputs": {
"$ref": "#/$defs/RunInputs"
},
"name": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"params": {
"type": "object",
"additionalProperties": true
},
"pipeline_type": {
"type": "string",
"default": "BINDER_DESIGN"
}
},
"$defs": {
"RunInputs": {
"type": "object",
"properties": {
"backbone_cifs_gcs_prefix": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"backbone_gcs_prefix": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"backbone_uris": {
"default": null,
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"binder_chain_id": {
"type": "string",
"default": "A"
},
"binder_pdbs": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"design_set": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"design_spec_entry": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"design_spec_files": {
"default": null,
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
{
"type": "null"
}
]
},
"design_spec_gcs_prefix": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"design_spec_yaml": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"sequences": {
"default": null,
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"additionalProperties": true
}
]
}
},
{
"type": "null"
}
]
},
"source_pipeline_node_id": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"source_run_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"target_chain_id": {
"type": "string",
"default": "A"
},
"target_cif": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"target_cif_uri": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"target_pdb": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"target_pdb_uri": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
}
}
}RunSubmitResponse fields and schemaShowHide
Fields
| Name | Type | Default |
|---|---|---|
| batch_idoptional | string or null | null |
| dataset_idoptional | string or null | null |
| estimated_creditsoptional | integer or null | null |
| run_idrequired | string | |
| source_run_idoptional | string or null | null |
| statusrequired | string | |
| status_urloptional | string or null | null |
JSON schema
{
"type": "object",
"required": [
"run_id",
"status"
],
"properties": {
"batch_id": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"dataset_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"estimated_credits": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"run_id": {
"type": "string"
},
"source_run_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"status_url": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
}phi.runs.timeline
python
phi.runs.timeline(run_id=run_id)Returns RunTimelineResponse.
Parameters
| Name | Type |
|---|---|
| run_idrequired | str | uuid.UUID |
RunTimelineResponse fields and schemaShowHide
Fields
| Name | Type | Description |
|---|---|---|
| overall_statusrequired | string | |
| pipeline_typerequired | string | |
| run_idrequired | string | format: uuid |
| stagesrequired | (object)[] |
JSON schema
{
"type": "object",
"required": [
"run_id",
"pipeline_type",
"overall_status",
"stages"
],
"properties": {
"overall_status": {
"type": "string"
},
"pipeline_type": {
"type": "string"
},
"run_id": {
"type": "string",
"format": "uuid"
},
"stages": {
"type": "array",
"items": {
"$ref": "#/$defs/StageResponse"
}
}
},
"$defs": {
"StageEventResponse": {
"type": "object",
"required": [
"event_type",
"occurred_at"
],
"properties": {
"event_type": {
"type": "string"
},
"message": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"occurred_at": {
"type": "string",
"format": "date-time"
},
"progress_pct": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
}
},
"StageResponse": {
"type": "object",
"required": [
"stage",
"pipeline_node_id",
"stage_order",
"status"
],
"properties": {
"completed_at": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"error": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"error_code": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"events": {
"type": "array",
"items": {
"$ref": "#/$defs/StageEventResponse"
}
},
"exit_code": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"pipeline_node_id": {
"type": "string"
},
"recommended_action": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"stage": {
"type": "string"
},
"stage_order": {
"type": "integer"
},
"started_at": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
}
}
}
}
}phi.runs.wait
python
phi.runs.wait(run_id=run_id)Returns RunResponse.
Parameters
| Name | Type | Default |
|---|---|---|
| run_idrequired | str | uuid.UUID | |
| intervaloptional | float | 5 |
| timeoutoptional | float | None | None |
| on_updateoptional | Callable[[RunResponse], None] | None | None |
| stagesoptional | bool | False |
| max_consecutive_errorsoptional | int | 5 |
RunResponse fields and schemaShowHide
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| batch_idoptional | string or null | null | |
| completed_atoptional | string or null | null | |
| consumed_creditsrequired | integer | ||
| contextoptional | object or null | null | |
| created_atrequired | string | format: date-time | |
| dataset_idoptional | string or null | null | |
| erroroptional | string or null | null | |
| error_codeoptional | string or null | null | |
| estimated_creditsrequired | integer | ||
| exit_codeoptional | integer or null | null | |
| idrequired | string | format: uuid | |
| input_manifest_urioptional | string or null | null | |
| inputsoptional | object or null | null | |
| nameoptional | string or null | null | |
| paramsoptional | object or null | null | |
| pipeline_typerequired | string | ||
| project_idoptional | string or null | null | |
| recommended_actionoptional | string or null | null | |
| source_run_idoptional | string or null | null | |
| statusrequired | string | ||
| summaryoptional | object or null | null | |
| updated_atrequired | string | format: date-time |
JSON schema
{
"type": "object",
"required": [
"id",
"pipeline_type",
"status",
"estimated_credits",
"consumed_credits",
"created_at",
"updated_at"
],
"properties": {
"batch_id": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"completed_at": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"consumed_credits": {
"type": "integer"
},
"context": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"created_at": {
"type": "string",
"format": "date-time"
},
"dataset_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"error": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"error_code": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"estimated_credits": {
"type": "integer"
},
"exit_code": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"id": {
"type": "string",
"format": "uuid"
},
"input_manifest_uri": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"inputs": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"name": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"params": {
"default": null,
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"pipeline_type": {
"type": "string"
},
"project_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"recommended_action": {
"default": null,
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"source_run_id": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"summary": {
"default": null,
"anyOf": [
{
"$ref": "#/$defs/RunSummary"
},
{
"type": "null"
}
]
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"$defs": {
"RunHeadline": {
"type": "object",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string"
},
"pass_count": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"value": {
"type": "number"
}
}
},
"RunSummary": {
"type": "object",
"properties": {
"duration_seconds": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"headline": {
"default": null,
"anyOf": [
{
"$ref": "#/$defs/RunHeadline"
},
{
"type": "null"
}
]
},
"sample_count": {
"default": null,
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
}
}
}
}From the installed client, phi 0.4.2, 2026-11-23.