Skip to content

Commit f93f2b5

Browse files
birdayzclaude
andcommitted
proto: move AI agent model into provider, add base_url
Move the model field from the top-level AIAgent message into the OpenAI provider configuration where it belongs. Different providers have different model naming schemes and requirements, so this makes the schema cleaner and more extensible. Also add an optional base_url field to OpenAI provider to support OpenAI-compatible API endpoints beyond the default OpenAI API. Changes: - Moved model field into Provider.OpenAI message - Added base_url field to Provider.OpenAI message - Updated AIAgentCreate and AIAgentUpdate messages accordingly - Regenerated all protobuf code and OpenAPI specs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 1bdb3cb commit f93f2b5

File tree

11 files changed

+509
-537
lines changed

11 files changed

+509
-537
lines changed

backend/pkg/protogen/redpanda/api/console/v1alpha1/shadowlink.pb.gw.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/pkg/protogen/redpanda/api/dataplane/v1alpha3/ai_agent.pb.go

Lines changed: 481 additions & 492 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/pkg/protogen/redpanda/api/dataplane/v1alpha3/shadowlink.pb.gw.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/src/protogen/redpanda/api/dataplane/v1alpha3/ai_agent_pb.ts

Lines changed: 11 additions & 16 deletions
Large diffs are not rendered by default.

proto/gen/openapi/openapi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

proto/gen/openapi/openapi.v1alpha2.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

proto/gen/openapi/openapi.v1alpha2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4375,7 +4375,7 @@ paths:
43754375
content:
43764376
multipart/form-data:
43774377
schema:
4378-
example: '{"name":"redact-orders", "input_topic_name":"orders", "output_topic_names":["orders-redacted"], "environment_variables":[{"key":"LOGGER_LEVEL", "value":"DEBUG"}]}'
4378+
example: '{"name":"redact-orders","input_topic_name":"orders","output_topic_names":["orders-redacted"],"environment_variables":[{"key":"LOGGER_LEVEL","value":"DEBUG"}]}'
43794379
properties:
43804380
metadata:
43814381
$ref: '#/components/schemas/DeployTransformRequest'

proto/gen/openapi/openapi.v1alpha3.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

proto/gen/openapi/openapi.v1alpha3.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ components:
2121
$ref: '#/components/schemas/AIAgent.MCPServer'
2222
description: Map of MCP servers that this AI agent can use.
2323
type: object
24-
model:
25-
type: string
2624
provider:
2725
$ref: '#/components/schemas/AIAgent.Provider'
2826
resources:
@@ -49,7 +47,6 @@ components:
4947
- display_name
5048
- system_prompt
5149
- provider
52-
- model
5350
- service_account
5451
type: object
5552
AIAgent.MCPServer:
@@ -68,8 +65,13 @@ components:
6865
properties:
6966
api_key:
7067
type: string
68+
base_url:
69+
type: string
70+
model:
71+
type: string
7172
required:
7273
- api_key
74+
- model
7375
type: object
7476
AIAgent.ServiceAccount:
7577
properties:
@@ -114,8 +116,6 @@ components:
114116
$ref: '#/components/schemas/AIAgent.MCPServer'
115117
description: Map of MCP servers that this AI agent can use.
116118
type: object
117-
model:
118-
type: string
119119
provider:
120120
$ref: '#/components/schemas/AIAgent.Provider'
121121
resources:
@@ -134,7 +134,6 @@ components:
134134
- display_name
135135
- system_prompt
136136
- provider
137-
- model
138137
- service_account
139138
type: object
140139
AIAgentUpdate:
@@ -153,8 +152,6 @@ components:
153152
$ref: '#/components/schemas/AIAgent.MCPServer'
154153
description: Map of MCP servers that this AI agent can use.
155154
type: object
156-
model:
157-
type: string
158155
provider:
159156
$ref: '#/components/schemas/AIAgent.Provider'
160157
resources:

proto/gen/openapi/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5608,7 +5608,7 @@ paths:
56085608
content:
56095609
multipart/form-data:
56105610
schema:
5611-
example: '{"name":"redact-orders","input_topic_name":"orders","output_topic_names":["orders-redacted"],"environment_variables":[{"key":"LOGGER_LEVEL","value":"DEBUG"}]}'
5611+
example: '{"name":"redact-orders", "input_topic_name":"orders", "output_topic_names":["orders-redacted"], "environment_variables":[{"key":"LOGGER_LEVEL", "value":"DEBUG"}]}'
56125612
properties:
56135613
metadata:
56145614
$ref: '#/components/schemas/DeployTransformRequest'

0 commit comments

Comments
 (0)