Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
36 changes: 36 additions & 0 deletions py/src/braintrust/_generated_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down
4 changes: 3 additions & 1 deletion py/src/braintrust/generated_types.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -121,6 +122,7 @@
"AISecret",
"Acl",
"AclObjectType",
"Agent",
"AnyModelParams",
"ApiKey",
"AsyncScoringControl",
Expand Down
Loading