openprotein.prompt.Prompt#
- class openprotein.prompt.Prompt(session, job=None, metadata=None, num_replicates=None)[source]#
Prompt which contains a set of sequences and/or structures used to condition the PoET models.
- Parameters:
session (APISession)
job (PromptJob | None)
metadata (PromptMetadata)
num_replicates (int | None)
- __init__(session, job=None, metadata=None, num_replicates=None)[source]#
Initialize a new Prompt instance.
- Parameters:
session (APISession) – An APISession object used for interacting with the API.
job (PromptJob | None) – A PromptJob containing information about the optional prompt job.
metadata (PromptMetadata) – A PromptMetadata object containing metadata for the prompt.
num_replicates (int | None)
Methods
__init__(session[, job, metadata, ...])Initialize a new Prompt instance.
cancelled()Check if the job has been cancelled.
create(session[, job_id, job, response])Create an instance of the appropriate Future class based on the job type.
done()Check if the job has completed.
get()Return the results from this job.
refresh()Refresh the job status and internal job object.
wait([interval, timeout, verbose])Wait for the job to complete, then fetch results.
wait_until_done([interval, timeout, verbose])Wait for the job to complete.
Attributes
created_dateThe creation timestamp of the job.
descriptionend_dateThe end timestamp of the job.
idThe unique identifier of the job.
job_idThe unique identifier of the job.
job_typeThe type of the job.
namenum_replicatesprogress_counterThe progress counter of the job.
start_dateThe start timestamp of the job.
statusThe current status of the job.
metadatasessionjob