Skip to content

Commit

Permalink
chore: Remove run.template and run.config fields
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Dec 19, 2024
1 parent 6befe89 commit 1db0131
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
14 changes: 0 additions & 14 deletions control-plane/src/modules/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,23 +543,9 @@ export const definition = {
"Structured input arguments to merge with the initial prompt. The schema must match the run configuration input schema if defined",
)
.optional(),
config: z
.object({
id: z.string().describe("DEPRECATED"),
input: z.object({}).passthrough().describe("DEPRECATED").optional(),
})
.describe("DEPRECATED")
.optional(),
context: anyObject
.optional()
.describe("Additional context to propogate to all calls in the run"),
template: z
.object({
id: z.string().describe("DEPRECATED"),
input: z.object({}).passthrough().optional().describe("DEPRECATED"),
})
.optional()
.describe("DEPRECATED"),
reasoningTraces: z
.boolean()
.default(true)
Expand Down
14 changes: 0 additions & 14 deletions control-plane/src/modules/workflows/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,6 @@ export const runsRouter = initServer().router(
await auth.canAccess({ cluster: { clusterId } });
auth.canCreate({ run: true });

// TODO: Remove once use of deprecated fields is removed
if (body.config) {
logger.info("Depreacted `run.config` provided in call to createRun");
body.configId = body.configId ?? body.config.id;
body.input = body.input ?? body.config.input;
}

// TODO: Remove once use of deprecated fields is removed
if (body.template) {
logger.info("Depreacted `run.template` provided in call to createRun");
body.configId = body.configId ?? body.template.id;
body.input = body.input ?? body.template.input;
}

if (!body.initialPrompt && !body.configId) {
return {
status: 400,
Expand Down

0 comments on commit 1db0131

Please sign in to comment.