From 1b4c8bf4a151345effdceaa58276fecf27d00fac Mon Sep 17 00:00:00 2001 From: "braintrust-bot[bot]" <215900051+braintrust-bot[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 15:16:08 +0000 Subject: [PATCH] chore: generated SDK types --- generated_types.json | 63 +++++++++++++++++++++++++++ py/src/braintrust/_generated_types.py | 36 +++++++++++++++ py/src/braintrust/generated_types.py | 4 +- 3 files changed, 102 insertions(+), 1 deletion(-) diff --git a/generated_types.json b/generated_types.json index 1bea0b97..87e89105 100644 --- a/generated_types.json +++ b/generated_types.json @@ -115,6 +115,69 @@ ], "description": "The object type that the ACL applies to" }, + "Agent": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier for the agent" + }, + "project_id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier for the project that the agent belongs under" + }, + "user_id": { + "type": "string", + "format": "uuid" + }, + "created": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "Date of agent creation" + }, + "name": { + "type": "string", + "description": "Name of the agent. Within a project, agent names are unique" + }, + "slug": { + "type": "string", + "description": "Stable, URL-safe identifier for the agent, unique within its project." + }, + "kind": { + "type": "string", + "description": "Agent classification: 'custom' for customer-defined agents, 'loop' for built-in Loop agents." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Textual description of the agent" + }, + "metadata": { + "type": [ + "object", + "null" + ], + "additionalProperties": {}, + "description": "User-controlled metadata about the agent" + } + }, + "required": [ + "id", + "project_id", + "user_id", + "name", + "slug", + "kind" + ], + "description": "An agent is a project-scoped durable object that identifies an AI agent or service emitting spans" + }, "AISecret": { "type": "object", "properties": { diff --git a/py/src/braintrust/_generated_types.py b/py/src/braintrust/_generated_types.py index 10181daf..2b8ced65 100644 --- a/py/src/braintrust/_generated_types.py +++ b/py/src/braintrust/_generated_types.py @@ -31,6 +31,42 @@ """ +class Agent(TypedDict): + id: str + """ + Unique identifier for the agent + """ + project_id: str + """ + Unique identifier for the project that the agent belongs under + """ + user_id: str + created: NotRequired[str | None] + """ + Date of agent creation + """ + name: str + """ + Name of the agent. Within a project, agent names are unique + """ + slug: str + """ + Stable, URL-safe identifier for the agent, unique within its project. + """ + kind: str + """ + Agent classification: 'custom' for customer-defined agents, 'loop' for built-in Loop agents. + """ + description: NotRequired[str | None] + """ + Textual description of the agent + """ + metadata: NotRequired[Mapping[str, Any] | None] + """ + User-controlled metadata about the agent + """ + + class AISecret(TypedDict): id: str """ diff --git a/py/src/braintrust/generated_types.py b/py/src/braintrust/generated_types.py index ddaafcfc..4767a18f 100644 --- a/py/src/braintrust/generated_types.py +++ b/py/src/braintrust/generated_types.py @@ -1,8 +1,9 @@ -"""Auto-generated file (content hash 98e7ecf4ce147303) -- do not modify""" +"""Auto-generated file (content hash 544695dbf71e867b) -- do not modify""" from ._generated_types import ( Acl, AclObjectType, + Agent, AISecret, AnyModelParams, ApiKey, @@ -121,6 +122,7 @@ "AISecret", "Acl", "AclObjectType", + "Agent", "AnyModelParams", "ApiKey", "AsyncScoringControl",