List jobs
Parameters
agent: Optional[str]
formatuuid
analyzer_model: Optional[str]
created_after: Optional[Union[str, datetime]]
formatdate-time
created_before: Optional[Union[str, datetime]]
formatdate-time
data_source: Optional[str]
ordering: Optional[str]
Which field to use when ordering the results.
page: Optional[int]
A page number within the paginated result set.
project: Optional[str]
formatuuid
prompt_slug: Optional[str]
score_max: Optional[float]
formatfloat
score_min: Optional[float]
formatfloat
search: Optional[str]
A search term.
Returns
List jobs
from overmind_lab import OvermindLab
client = OvermindLab()
jobs = client.jobs.list()
print(jobs.count){
"count": 123,
"results": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"updated_at": "2019-12-27T18:11:19.117Z",
"agent": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"analyzer_model": "analyzer_model",
"baseline_score": 0,
"best_score": 0,
"improvement": 0,
"job_type": "inference",
"num_iterations": -9007199254740991,
"project": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"prompt_slug": "prompt_slug",
"status": "pending"
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}Returns Examples
{
"count": 123,
"results": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"updated_at": "2019-12-27T18:11:19.117Z",
"agent": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"analyzer_model": "analyzer_model",
"baseline_score": 0,
"best_score": 0,
"improvement": 0,
"job_type": "inference",
"num_iterations": -9007199254740991,
"project": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"prompt_slug": "prompt_slug",
"status": "pending"
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}