Skip to content

Commit 39331a9

Browse files
chore: generated SDK types (#518)
Automated regeneration of SDK types. Co-authored-by: braintrust-bot[bot] <215900051+braintrust-bot[bot]@users.noreply.github.com>
1 parent bc1f265 commit 39331a9

3 files changed

Lines changed: 102 additions & 1 deletion

File tree

generated_types.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,69 @@
115115
],
116116
"description": "The object type that the ACL applies to"
117117
},
118+
"Agent": {
119+
"type": "object",
120+
"properties": {
121+
"id": {
122+
"type": "string",
123+
"format": "uuid",
124+
"description": "Unique identifier for the agent"
125+
},
126+
"project_id": {
127+
"type": "string",
128+
"format": "uuid",
129+
"description": "Unique identifier for the project that the agent belongs under"
130+
},
131+
"user_id": {
132+
"type": "string",
133+
"format": "uuid"
134+
},
135+
"created": {
136+
"type": [
137+
"string",
138+
"null"
139+
],
140+
"format": "date-time",
141+
"description": "Date of agent creation"
142+
},
143+
"name": {
144+
"type": "string",
145+
"description": "Name of the agent. Within a project, agent names are unique"
146+
},
147+
"slug": {
148+
"type": "string",
149+
"description": "Stable, URL-safe identifier for the agent, unique within its project."
150+
},
151+
"kind": {
152+
"type": "string",
153+
"description": "Agent classification: 'custom' for customer-defined agents, 'loop' for built-in Loop agents."
154+
},
155+
"description": {
156+
"type": [
157+
"string",
158+
"null"
159+
],
160+
"description": "Textual description of the agent"
161+
},
162+
"metadata": {
163+
"type": [
164+
"object",
165+
"null"
166+
],
167+
"additionalProperties": {},
168+
"description": "User-controlled metadata about the agent"
169+
}
170+
},
171+
"required": [
172+
"id",
173+
"project_id",
174+
"user_id",
175+
"name",
176+
"slug",
177+
"kind"
178+
],
179+
"description": "An agent is a project-scoped durable object that identifies an AI agent or service emitting spans"
180+
},
118181
"AISecret": {
119182
"type": "object",
120183
"properties": {

py/src/braintrust/_generated_types.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,42 @@
3131
"""
3232

3333

34+
class Agent(TypedDict):
35+
id: str
36+
"""
37+
Unique identifier for the agent
38+
"""
39+
project_id: str
40+
"""
41+
Unique identifier for the project that the agent belongs under
42+
"""
43+
user_id: str
44+
created: NotRequired[str | None]
45+
"""
46+
Date of agent creation
47+
"""
48+
name: str
49+
"""
50+
Name of the agent. Within a project, agent names are unique
51+
"""
52+
slug: str
53+
"""
54+
Stable, URL-safe identifier for the agent, unique within its project.
55+
"""
56+
kind: str
57+
"""
58+
Agent classification: 'custom' for customer-defined agents, 'loop' for built-in Loop agents.
59+
"""
60+
description: NotRequired[str | None]
61+
"""
62+
Textual description of the agent
63+
"""
64+
metadata: NotRequired[Mapping[str, Any] | None]
65+
"""
66+
User-controlled metadata about the agent
67+
"""
68+
69+
3470
class AISecret(TypedDict):
3571
id: str
3672
"""

py/src/braintrust/generated_types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
"""Auto-generated file (content hash 98e7ecf4ce147303) -- do not modify"""
1+
"""Auto-generated file (content hash 544695dbf71e867b) -- do not modify"""
22

33
from ._generated_types import (
44
Acl,
55
AclObjectType,
6+
Agent,
67
AISecret,
78
AnyModelParams,
89
ApiKey,
@@ -121,6 +122,7 @@
121122
"AISecret",
122123
"Acl",
123124
"AclObjectType",
125+
"Agent",
124126
"AnyModelParams",
125127
"ApiKey",
126128
"AsyncScoringControl",

0 commit comments

Comments
 (0)