Dyno Phi
ContentsPython SDKShow

phi.runs

Read runs, follow their stages and resume a failed run.

phi.runs.backbone_uris

python
phi.runs.backbone_uris(run_id=run_id)

Returns builtins.list[str].

Parameters

NameTypeDefault
run_idrequiredstr | uuid.UUID
pipeline_node_idoptionalstr | NoneNone

phi.runs.cancel

python
phi.runs.cancel(run_id=run_id)

Parameters

NameType
run_idrequiredstr | uuid.UUID

phi.runs.dag

python
phi.runs.dag(run_id=run_id)

Returns RunDagResponse.

Parameters

NameType
run_idrequiredstr | uuid.UUID
RunDagResponse fields and schemaShow

Fields

NameTypeDescription
edgesrequired(object)[]
nodesrequired(object)[]
overall_statusrequiredstring
pipeline_typerequiredstring
run_idrequiredstringformat: 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

NameType
project_idrequiredstr | uuid.UUID
submitrequiredRunSubmit | RunEstimate
RunEstimate fields and schemaShow

Fields

NameTypeDefault
inputsoptionalobject
num_designsoptionalinteger or nullnull
paramsoptionalobject
pipeline_typeoptionalstring"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 schemaShow

Fields

NameType
breakdownrequired(object)[]
estimated_creditsrequiredinteger
pipeline_typerequiredstring
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 schemaShow

Fields

NameTypeDefault
batch_idoptionalstring or nullnull
contextoptionalobject or nullnull
dataset_idoptionalstring or nullnull
idempotency_keyoptionalstring or nullnull
inputsrequiredobject
nameoptionalstring or nullnull
paramsoptionalobject
pipeline_typeoptionalstring"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

NameType
run_idrequiredstr | uuid.UUID
RunResponse fields and schemaShow

Fields

NameTypeDefaultDescription
batch_idoptionalstring or nullnull
completed_atoptionalstring or nullnull
consumed_creditsrequiredinteger
contextoptionalobject or nullnull
created_atrequiredstringformat: date-time
dataset_idoptionalstring or nullnull
erroroptionalstring or nullnull
error_codeoptionalstring or nullnull
estimated_creditsrequiredinteger
exit_codeoptionalinteger or nullnull
idrequiredstringformat: uuid
input_manifest_urioptionalstring or nullnull
inputsoptionalobject or nullnull
nameoptionalstring or nullnull
paramsoptionalobject or nullnull
pipeline_typerequiredstring
project_idoptionalstring or nullnull
recommended_actionoptionalstring or nullnull
source_run_idoptionalstring or nullnull
statusrequiredstring
summaryoptionalobject or nullnull
updated_atrequiredstringformat: 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

NameTypeDefault
project_idrequiredstr | uuid.UUID
page_sizeoptionalint20
batch_idoptionalstr | NoneNone
source_run_idoptionalstr | uuid.UUID | NoneNone
RunResponse fields and schemaShow

Fields

NameTypeDefaultDescription
batch_idoptionalstring or nullnull
completed_atoptionalstring or nullnull
consumed_creditsrequiredinteger
contextoptionalobject or nullnull
created_atrequiredstringformat: date-time
dataset_idoptionalstring or nullnull
erroroptionalstring or nullnull
error_codeoptionalstring or nullnull
estimated_creditsrequiredinteger
exit_codeoptionalinteger or nullnull
idrequiredstringformat: uuid
input_manifest_urioptionalstring or nullnull
inputsoptionalobject or nullnull
nameoptionalstring or nullnull
paramsoptionalobject or nullnull
pipeline_typerequiredstring
project_idoptionalstring or nullnull
recommended_actionoptionalstring or nullnull
source_run_idoptionalstring or nullnull
statusrequiredstring
summaryoptionalobject or nullnull
updated_atrequiredstringformat: 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

NameTypeDefault
project_idrequiredstr | uuid.UUID
pageoptionalint1
page_sizeoptionalint20
cursoroptionalstr | NoneNone
batch_idoptionalstr | NoneNone
source_run_idoptionalstr | uuid.UUID | NoneNone
RunResponse fields and schemaShow

Fields

NameTypeDefaultDescription
batch_idoptionalstring or nullnull
completed_atoptionalstring or nullnull
consumed_creditsrequiredinteger
contextoptionalobject or nullnull
created_atrequiredstringformat: date-time
dataset_idoptionalstring or nullnull
erroroptionalstring or nullnull
error_codeoptionalstring or nullnull
estimated_creditsrequiredinteger
exit_codeoptionalinteger or nullnull
idrequiredstringformat: uuid
input_manifest_urioptionalstring or nullnull
inputsoptionalobject or nullnull
nameoptionalstring or nullnull
paramsoptionalobject or nullnull
pipeline_typerequiredstring
project_idoptionalstring or nullnull
recommended_actionoptionalstring or nullnull
source_run_idoptionalstring or nullnull
statusrequiredstring
summaryoptionalobject or nullnull
updated_atrequiredstringformat: 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 schemaShow

Fields

NameType
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

NameType
run_idrequiredstr | uuid.UUID
RunSubmitResponse fields and schemaShow

Fields

NameTypeDefault
batch_idoptionalstring or nullnull
dataset_idoptionalstring or nullnull
estimated_creditsoptionalinteger or nullnull
run_idrequiredstring
source_run_idoptionalstring or nullnull
statusrequiredstring
status_urloptionalstring or nullnull
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

NameType
project_idrequiredstr | uuid.UUID
submitrequiredRunSubmit
RunSubmit fields and schemaShow

Fields

NameTypeDefault
batch_idoptionalstring or nullnull
contextoptionalobject or nullnull
dataset_idoptionalstring or nullnull
idempotency_keyoptionalstring or nullnull
inputsrequiredobject
nameoptionalstring or nullnull
paramsoptionalobject
pipeline_typeoptionalstring"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 schemaShow

Fields

NameTypeDefault
batch_idoptionalstring or nullnull
dataset_idoptionalstring or nullnull
estimated_creditsoptionalinteger or nullnull
run_idrequiredstring
source_run_idoptionalstring or nullnull
statusrequiredstring
status_urloptionalstring or nullnull
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

NameType
run_idrequiredstr | uuid.UUID
RunTimelineResponse fields and schemaShow

Fields

NameTypeDescription
overall_statusrequiredstring
pipeline_typerequiredstring
run_idrequiredstringformat: 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

NameTypeDefault
run_idrequiredstr | uuid.UUID
intervaloptionalfloat5
timeoutoptionalfloat | NoneNone
on_updateoptionalCallable[[RunResponse], None] | NoneNone
stagesoptionalboolFalse
max_consecutive_errorsoptionalint5
RunResponse fields and schemaShow

Fields

NameTypeDefaultDescription
batch_idoptionalstring or nullnull
completed_atoptionalstring or nullnull
consumed_creditsrequiredinteger
contextoptionalobject or nullnull
created_atrequiredstringformat: date-time
dataset_idoptionalstring or nullnull
erroroptionalstring or nullnull
error_codeoptionalstring or nullnull
estimated_creditsrequiredinteger
exit_codeoptionalinteger or nullnull
idrequiredstringformat: uuid
input_manifest_urioptionalstring or nullnull
inputsoptionalobject or nullnull
nameoptionalstring or nullnull
paramsoptionalobject or nullnull
pipeline_typerequiredstring
project_idoptionalstring or nullnull
recommended_actionoptionalstring or nullnull
source_run_idoptionalstring or nullnull
statusrequiredstring
summaryoptionalobject or nullnull
updated_atrequiredstringformat: 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.