Add agent_id to ToolTable in all schema files and generate migration

- Update schema.prisma (root) with agent_id field on LiteLLM_ToolTable
- Update litellm-proxy-extras schema.prisma with agent_id field
- Generate migration via ci_cd/run_migration.py: adds agent_id column

Co-authored-by: Krish Dholakia <krrishdholakia@gmail.com>
This commit is contained in:
Cursor Agent 2026-03-05 19:16:11 +00:00
parent 67b6ca164e
commit 8cb026bf12
3 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,6 @@
-- AlterTable
ALTER TABLE "LiteLLM_MCPServerTable" ADD COLUMN "spec_path" TEXT;
-- AlterTable
ALTER TABLE "LiteLLM_ToolTable" ADD COLUMN "agent_id" TEXT;

View file

@ -1090,6 +1090,7 @@ model LiteLLM_ToolTable {
team_id String? // team that first called this tool
key_alias String? // human-readable alias of the virtual key
user_agent String? // user-agent of the first request that discovered this tool
agent_id String? // agent that first triggered this tool call
last_used_at DateTime? // timestamp of the most recent call
created_at DateTime @default(now())
created_by String?

View file

@ -1090,6 +1090,7 @@ model LiteLLM_ToolTable {
team_id String? // team that first called this tool
key_alias String? // human-readable alias of the virtual key
user_agent String? // user-agent of the first request that discovered this tool
agent_id String? // agent that first triggered this tool call
last_used_at DateTime? // timestamp of the most recent call
created_at DateTime @default(now())
created_by String?