Update agent
client.agents.update(stringid, AgentUpdateParams { active_dataset, agent_description, agent_path, 33 more } body?, RequestOptionsoptions?): AgentUpdateResponse { id, created_at, name, 36 more }
PATCH/api/agents/{id}/
Update agent
Parameters
id: string
formatuuid
Returns
Update agent
import OvermindLab from 'overmind-lab';
const client = new OvermindLab();
const agent = await client.agents.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(agent.id);{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"project": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"active_dataset": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"agent_description": {},
"agent_path": "agent_path",
"analyzer_model": "analyzer_model",
"backtest_metadata": {},
"backtest_model_suggestions": {},
"consistency_rules": {},
"dataset_has_expected_output": true,
"dataset_input_keys": {},
"dataset_size": -9007199254740991,
"description": "description",
"display_name": "display_name",
"entrypoint_fn": "entrypoint_fn",
"eval_dataset": {},
"evaluation_criteria": {},
"fixed_elements": {},
"improvement_metadata": {},
"input_schema": {},
"is_deleted": true,
"model": "model",
"optimizable_elements": {},
"output_fields": {},
"output_schema": {},
"policy_data": {},
"policy_markdown": "policy_markdown",
"proposed_criteria": {},
"status": "status",
"structure_weight": 0,
"tags": {},
"tool_analysis": {},
"tool_config": {},
"tool_usage_weight": 0,
"total_points": 0
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"project": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"active_dataset": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"agent_description": {},
"agent_path": "agent_path",
"analyzer_model": "analyzer_model",
"backtest_metadata": {},
"backtest_model_suggestions": {},
"consistency_rules": {},
"dataset_has_expected_output": true,
"dataset_input_keys": {},
"dataset_size": -9007199254740991,
"description": "description",
"display_name": "display_name",
"entrypoint_fn": "entrypoint_fn",
"eval_dataset": {},
"evaluation_criteria": {},
"fixed_elements": {},
"improvement_metadata": {},
"input_schema": {},
"is_deleted": true,
"model": "model",
"optimizable_elements": {},
"output_fields": {},
"output_schema": {},
"policy_data": {},
"policy_markdown": "policy_markdown",
"proposed_criteria": {},
"status": "status",
"structure_weight": 0,
"tags": {},
"tool_analysis": {},
"tool_config": {},
"tool_usage_weight": 0,
"total_points": 0
}