Update job
Parameters
id: str
formatuuid
agent: Optional[str]
formatuuid
analyzer_model: Optional[str]
maxLength128
baseline_score: Optional[float]
formatdouble
best_agent_code: Optional[str]
best_score: Optional[float]
formatdouble
candidates_per_iteration: Optional[int]
maximum9223372036854776000
minimum-9223372036854776000
formatint64
celery_task_id: Optional[str]
maxLength255
data_source: Optional[str]
minLength1
maxLength20
improvement: Optional[float]
formatdouble
num_iterations: Optional[int]
maximum9223372036854776000
minimum-9223372036854776000
formatint64
project: Optional[str]
formatuuid
prompt_slug: Optional[str]
maxLength255
report_markdown: Optional[str]
triggered_by: Optional[int]
Returns
Update job
from overmind_lab import OvermindLab
client = OvermindLab()
job = client.jobs.update(
id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(job.id){
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"iterations": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"iteration_name": "iteration_name",
"job": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"agent_code": "agent_code",
"avg_score": 0,
"description": "description",
"dimension_scores": {},
"order": -9007199254740991,
"status": "keep"
}
],
"updated_at": "2019-12-27T18:11:19.117Z",
"agent": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"analyzer_model": "analyzer_model",
"backtest_results": {},
"baseline_score": 0,
"best_agent_code": "best_agent_code",
"best_score": 0,
"candidates_per_iteration": -9007199254740991,
"celery_task_id": "celery_task_id",
"data_source": "data_source",
"improvement": 0,
"job_type": "inference",
"num_iterations": -9007199254740991,
"project": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"prompt_slug": "prompt_slug",
"report_markdown": "report_markdown",
"result": {},
"status": "pending",
"triggered_by": 0
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"iterations": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"iteration_name": "iteration_name",
"job": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"agent_code": "agent_code",
"avg_score": 0,
"description": "description",
"dimension_scores": {},
"order": -9007199254740991,
"status": "keep"
}
],
"updated_at": "2019-12-27T18:11:19.117Z",
"agent": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"analyzer_model": "analyzer_model",
"backtest_results": {},
"baseline_score": 0,
"best_agent_code": "best_agent_code",
"best_score": 0,
"candidates_per_iteration": -9007199254740991,
"celery_task_id": "celery_task_id",
"data_source": "data_source",
"improvement": 0,
"job_type": "inference",
"num_iterations": -9007199254740991,
"project": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"prompt_slug": "prompt_slug",
"report_markdown": "report_markdown",
"result": {},
"status": "pending",
"triggered_by": 0
}