forked from bai/curriculum-project-hub
feat: add deployable alpha silo
This commit is contained in:
@@ -12,6 +12,8 @@ type EnvSource = Env | (() => Env);
|
||||
const DEFAULT_SONNET_MODEL = "anthropic/claude-sonnet-5";
|
||||
const DEFAULT_SONNET_LABEL = "Claude Sonnet 5";
|
||||
const DEFAULT_AGENT_MAX_TURNS = 25;
|
||||
const DEFAULT_AGENT_MAX_CONCURRENT_RUNS = 1;
|
||||
const DEFAULT_AGENT_MAX_RUN_SECONDS = 900;
|
||||
|
||||
export interface ProviderRuntimeSettings {
|
||||
readonly id: string;
|
||||
@@ -43,6 +45,8 @@ export interface RunPolicyInput {
|
||||
|
||||
export interface RunPolicy {
|
||||
readonly maxTurns: number;
|
||||
readonly maxConcurrentRuns: number;
|
||||
readonly maxRunSeconds: number;
|
||||
}
|
||||
|
||||
export interface RuntimeSettings {
|
||||
@@ -75,6 +79,16 @@ export class EnvRuntimeSettings implements RuntimeSettings {
|
||||
void input;
|
||||
return {
|
||||
maxTurns: positiveIntegerEnv(this.envSource(), "HUB_AGENT_MAX_TURNS", DEFAULT_AGENT_MAX_TURNS),
|
||||
maxConcurrentRuns: positiveIntegerEnv(
|
||||
this.envSource(),
|
||||
"HUB_AGENT_MAX_CONCURRENT_RUNS",
|
||||
DEFAULT_AGENT_MAX_CONCURRENT_RUNS,
|
||||
),
|
||||
maxRunSeconds: positiveIntegerEnv(
|
||||
this.envSource(),
|
||||
"HUB_AGENT_MAX_RUN_SECONDS",
|
||||
DEFAULT_AGENT_MAX_RUN_SECONDS,
|
||||
),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user