Skip to content
Open
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
1,005 changes: 521 additions & 484 deletions backend/pkg/protogen/redpanda/api/dataplane/v1alpha3/ai_agent.pb.go

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion proto/gen/openapi/openapi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion proto/gen/openapi/openapi.v1alpha2.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion proto/gen/openapi/openapi.v1alpha2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4375,7 +4375,7 @@ paths:
content:
multipart/form-data:
schema:
example: '{"name":"redact-orders", "input_topic_name":"orders", "output_topic_names":["orders-redacted"], "environment_variables":[{"key":"LOGGER_LEVEL", "value":"DEBUG"}]}'
example: '{"name":"redact-orders","input_topic_name":"orders","output_topic_names":["orders-redacted"],"environment_variables":[{"key":"LOGGER_LEVEL","value":"DEBUG"}]}'
properties:
metadata:
$ref: '#/components/schemas/DeployTransformRequest'
Expand Down
2 changes: 1 addition & 1 deletion proto/gen/openapi/openapi.v1alpha3.json

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions proto/gen/openapi/openapi.v1alpha3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ components:
description: Map of MCP servers that this AI agent can use.
type: object
model:
description: |-
Deprecated: Use provider.openai.model instead. This field is kept for backward compatibility.
If both are set, provider.openai.model takes precedence.
type: string
provider:
$ref: '#/components/schemas/AIAgent.Provider'
Expand Down Expand Up @@ -49,7 +52,6 @@ components:
- display_name
- system_prompt
- provider
- model
- service_account
type: object
AIAgent.MCPServer:
Expand All @@ -68,6 +70,13 @@ components:
properties:
api_key:
type: string
base_url:
type: string
model:
description: |-
Model to use for this AI agent. If not set, falls back to the deprecated top-level model field.
Preferred over the top-level model field when both are set.
type: string
required:
- api_key
type: object
Expand Down Expand Up @@ -115,6 +124,9 @@ components:
description: Map of MCP servers that this AI agent can use.
type: object
model:
description: |-
Deprecated: Use provider.openai.model instead. This field is kept for backward compatibility.
If both are set, provider.openai.model takes precedence.
type: string
provider:
$ref: '#/components/schemas/AIAgent.Provider'
Expand All @@ -134,7 +146,6 @@ components:
- display_name
- system_prompt
- provider
- model
- service_account
type: object
AIAgentUpdate:
Expand All @@ -154,6 +165,9 @@ components:
description: Map of MCP servers that this AI agent can use.
type: object
model:
description: |-
Deprecated: Use provider.openai.model instead. This field is kept for backward compatibility.
If both are set, provider.openai.model takes precedence.
type: string
provider:
$ref: '#/components/schemas/AIAgent.Provider'
Expand Down
2 changes: 1 addition & 1 deletion proto/gen/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5608,7 +5608,7 @@ paths:
content:
multipart/form-data:
schema:
example: '{"name":"redact-orders","input_topic_name":"orders","output_topic_names":["orders-redacted"],"environment_variables":[{"key":"LOGGER_LEVEL","value":"DEBUG"}]}'
example: '{"name":"redact-orders", "input_topic_name":"orders", "output_topic_names":["orders-redacted"], "environment_variables":[{"key":"LOGGER_LEVEL", "value":"DEBUG"}]}'
properties:
metadata:
$ref: '#/components/schemas/DeployTransformRequest'
Expand Down
28 changes: 21 additions & 7 deletions proto/redpanda/api/dataplane/v1alpha3/ai_agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ message AIAgent {
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).required = true
];
// Deprecated: Use provider.openai.model instead. This field is kept for backward compatibility.
// If both are set, provider.openai.model takes precedence.
string model = 7 [
(google.api.field_behavior) = REQUIRED,
(google.api.field_behavior) = IMMUTABLE,
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 128
(buf.validate.field).string.max_len = 128,
deprecated = true
];

// Map of MCP servers that this AI agent can use.
Expand Down Expand Up @@ -95,6 +96,13 @@ message AIAgent {
(buf.validate.field).required = true,
(buf.validate.field).string.pattern = "^\\$\\{secrets\\.[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)?\\}$"
];
// Model to use for this AI agent. If not set, falls back to the deprecated top-level model field.
// Preferred over the top-level model field when both are set.
string model = 2 [
(google.api.field_behavior) = IMMUTABLE,
(buf.validate.field).string.max_len = 128
];
string base_url = 3;
}

oneof provider {
Expand Down Expand Up @@ -374,11 +382,12 @@ message AIAgentCreate {
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).required = true
];
// Deprecated: Use provider.openai.model instead. This field is kept for backward compatibility.
// If both are set, provider.openai.model takes precedence.
string model = 6 [
(google.api.field_behavior) = REQUIRED,
(google.api.field_behavior) = IMMUTABLE,
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 128
(buf.validate.field).string.max_len = 128,
deprecated = true
];

// Map of MCP servers that this AI agent can use.
Expand Down Expand Up @@ -502,7 +511,12 @@ message AIAgentUpdate {
// LLM configuration settings for the AI agent.
AIAgent.Provider provider = 4;

string model = 6 [(buf.validate.field).string.max_len = 128];
// Deprecated: Use provider.openai.model instead. This field is kept for backward compatibility.
// If both are set, provider.openai.model takes precedence.
string model = 6 [
(buf.validate.field).string.max_len = 128,
deprecated = true
];

// Map of MCP servers that this AI agent can use.
map<string, AIAgent.MCPServer> mcp_servers = 7;
Expand Down
Loading