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
2 changes: 0 additions & 2 deletions src/core/eval.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ export class EvalClient implements CoreEvalClient {
evaluatorId: id,
evaluatorConfig,
kmsKeyArn: update.kmsKeyArn,
clientToken: update.clientToken,
}),
);
}
Expand Down Expand Up @@ -176,7 +175,6 @@ export class EvalClient implements CoreEvalClient {
evaluatorId: id,
evaluatorConfig,
kmsKeyArn: update.kmsKeyArn,
clientToken: update.clientToken,
}),
);
}
Expand Down
2 changes: 0 additions & 2 deletions src/handlers/eval/evaluator/code-based/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const createCodeBasedCreateHandler = (core: Core, io: AppIO) =>
"tags to apply (JSON object of key/value strings; inline, file://<path>, or - for stdin)",
z.string().optional(),
),
flag("client-token", "idempotency token", z.string().optional()),
],
handle: async (ctx, flags) => {
if (!flags["name"])
Expand Down Expand Up @@ -58,7 +57,6 @@ export const createCodeBasedCreateHandler = (core: Core, io: AppIO) =>
},
kmsKeyArn: flags["kms-key-arn"],
tags,
clientToken: flags["client-token"],
},
coreOptsFromCtx(ctx),
);
Expand Down
2 changes: 0 additions & 2 deletions src/handlers/eval/evaluator/code-based/update/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const createCodeBasedUpdateHandler = (core: Core) =>
z.number().int().min(1).max(300).optional(),
),
flag("kms-key-arn", "customer managed KMS key ARN for evaluator data", z.string().optional()),
flag("client-token", "idempotency token", z.string().optional()),
],
handle: async (ctx, flags) => {
if (!flags["id"]) throw new InputValidationError("required option '--id <id>' not specified");
Expand All @@ -29,7 +28,6 @@ export const createCodeBasedUpdateHandler = (core: Core) =>
lambdaArn: flags["lambda-arn"],
timeout: flags["timeout"],
kmsKeyArn: flags["kms-key-arn"],
clientToken: flags["client-token"],
},
coreOptsFromCtx(ctx),
);
Expand Down
2 changes: 0 additions & 2 deletions src/handlers/eval/evaluator/llm-as-a-judge/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const createLlmAsAJudgeCreateHandler = (core: Core, io: AppIO) =>
"tags to apply (JSON object of key/value strings; inline, file://<path>, or - for stdin)",
z.string().optional(),
),
flag("client-token", "idempotency token", z.string().optional()),
],
handle: async (ctx, flags) => {
if (!flags["name"])
Expand Down Expand Up @@ -65,7 +64,6 @@ export const createLlmAsAJudgeCreateHandler = (core: Core, io: AppIO) =>
},
kmsKeyArn: flags["kms-key-arn"],
tags,
clientToken: flags["client-token"],
},
coreOptsFromCtx(ctx),
);
Expand Down
2 changes: 0 additions & 2 deletions src/handlers/eval/evaluator/llm-as-a-judge/update/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const createLlmAsAJudgeUpdateHandler = (core: Core, io: AppIO) =>
flag("model", "the Bedrock model id used to judge", z.string().optional()),
ratingScaleFlag,
flag("kms-key-arn", "customer managed KMS key ARN for evaluator data", z.string().optional()),
flag("client-token", "idempotency token", z.string().optional()),
],
handle: async (ctx, flags) => {
if (!flags["id"]) throw new InputValidationError("required option '--id <id>' not specified");
Expand All @@ -33,7 +32,6 @@ export const createLlmAsAJudgeUpdateHandler = (core: Core, io: AppIO) =>
model: flags["model"],
ratingScale,
kmsKeyArn: flags["kms-key-arn"],
clientToken: flags["client-token"],
},
coreOptsFromCtx(ctx),
);
Expand Down
2 changes: 0 additions & 2 deletions src/handlers/eval/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export type LlmAsAJudgeUpdate = {
model?: string;
ratingScale?: RatingScale;
kmsKeyArn?: string;
clientToken?: string;
};

// CodeBasedUpdate carries the fields a caller may change on a code-based
Expand All @@ -42,7 +41,6 @@ export type CodeBasedUpdate = {
lambdaArn?: string;
timeout?: number;
kmsKeyArn?: string;
clientToken?: string;
};

// CreateOnlineEvalInput mirrors CreateOnlineEvaluationConfigRequest but lets the
Expand Down
2 changes: 0 additions & 2 deletions src/handlers/harness/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export const createCreateHarnessHandler = (core: Core) =>
flag("tags", "tags to apply (JSON object of key/value strings)", z.string().optional(), {
help: parameterHelp.tags,
}),
flag("client-token", "idempotency token", z.string().optional()),
],
handle: async (ctx, flags) => {
// Required at runtime but declared optional so that a bare
Expand Down Expand Up @@ -131,7 +130,6 @@ export const createCreateHarnessHandler = (core: Core) =>
maxTokens: flags["max-tokens"],
timeoutSeconds: flags["timeout-seconds"],
tags: parseJsonFlag<Record<string, string>>("tags", flags["tags"]),
clientToken: flags["client-token"],
},
coreOptsFromCtx(ctx),
);
Expand Down
2 changes: 0 additions & 2 deletions src/handlers/harness/delete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const createDeleteHarnessHandler = (core: Core) =>
"whether to also delete the managed memory (default true; pass false to keep it)",
z.enum(["true", "false"]).optional(),
),
flag("client-token", "idempotency token", z.string().optional()),
],
handle: async (ctx, flags) => {
// Required at runtime but declared optional so that a bare
Expand All @@ -32,7 +31,6 @@ export const createDeleteHarnessHandler = (core: Core) =>
flags["delete-managed-memory"] === undefined
? undefined
: flags["delete-managed-memory"] === "true",
clientToken: flags["client-token"],
},
coreOptsFromCtx(ctx),
);
Expand Down
2 changes: 0 additions & 2 deletions src/handlers/harness/endpoint/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const createCreateEndpointHandler = (core: Core) =>
z.string().optional(),
),
flag("tags", "tags to apply (JSON object of key/value strings)", z.string().optional()),
flag("client-token", "idempotency token", z.string().optional()),
],
handle: async (ctx, flags) => {
// Required at runtime but declared optional so that a bare
Expand All @@ -36,7 +35,6 @@ export const createCreateEndpointHandler = (core: Core) =>
endpointName: flags["name"],
targetVersion: flags["target-version"],
tags: parseJsonFlag<Record<string, string>>("tags", flags["tags"]),
clientToken: flags["client-token"],
},
coreOptsFromCtx(ctx),
);
Expand Down
2 changes: 0 additions & 2 deletions src/handlers/harness/endpoint/delete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const createDeleteEndpointHandler = (core: Core) =>
flags: [
flag("id", "the ID of the harness", z.string().max(48).optional()),
flag("qualifier", "the endpoint name (qualifier)", z.string().optional()),
flag("client-token", "idempotency token", z.string().optional()),
],
handle: async (ctx, flags) => {
// Required at runtime but declared optional so that a bare
Expand All @@ -28,7 +27,6 @@ export const createDeleteEndpointHandler = (core: Core) =>
{
harnessId: flags["id"],
endpointName: flags["qualifier"],
clientToken: flags["client-token"],
},
coreOptsFromCtx(ctx),
);
Expand Down
2 changes: 0 additions & 2 deletions src/handlers/harness/endpoint/update/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const createUpdateEndpointHandler = (core: Core) =>
flag("id", "the ID of the harness", z.string().max(48).optional()),
flag("qualifier", "the endpoint name (qualifier)", z.string().optional()),
flag("target-version", "the harness version the endpoint points to", z.string().optional()),
flag("client-token", "idempotency token", z.string().optional()),
],
handle: async (ctx, flags) => {
// Required at runtime but declared optional so that a bare
Expand All @@ -30,7 +29,6 @@ export const createUpdateEndpointHandler = (core: Core) =>
harnessId: flags["id"],
endpointName: flags["qualifier"],
targetVersion: flags["target-version"],
clientToken: flags["client-token"],
},
coreOptsFromCtx(ctx),
);
Expand Down
2 changes: 0 additions & 2 deletions src/handlers/harness/update/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export const createUpdateHarnessHandler = (core: Core) =>
flag("max-iterations", "max agent loop iterations per invocation", z.number().optional()),
flag("max-tokens", "max total output tokens per invocation", z.number().optional()),
flag("timeout-seconds", "max duration in seconds per invocation", z.number().optional()),
flag("client-token", "idempotency token", z.string().optional()),
],
handle: async (ctx, flags) => {
// Required at runtime but declared optional so that a bare
Expand Down Expand Up @@ -156,7 +155,6 @@ export const createUpdateHarnessHandler = (core: Core) =>
maxIterations: flags["max-iterations"],
maxTokens: flags["max-tokens"],
timeoutSeconds: flags["timeout-seconds"],
clientToken: flags["client-token"],
},
coreOptsFromCtx(ctx),
);
Expand Down
Loading