swarm ui: a soft context limit field in an agent's inference settings
A whole percent from 5 to 100 of the model's context window, sent as soft_context_percent next to max_subagents. The inference row shows it, the edit dialog and the create form take it, and an archetype can carry it.
This commit is contained in:
parent
b19b730a3a
commit
e9af6cf2c7
1 changed files with 109 additions and 7 deletions
|
|
@ -14,6 +14,7 @@ export interface Archetype {
|
|||
effort?: string;
|
||||
subagent_models?: string[];
|
||||
max_subagents?: number;
|
||||
soft_context_percent?: number;
|
||||
};
|
||||
prompt?: string;
|
||||
/** The archetype's icon as SVG text. */
|
||||
|
|
@ -69,6 +70,10 @@ export function prefill(
|
|||
inference.max_subagents === undefined
|
||||
? ""
|
||||
: String(inference.max_subagents),
|
||||
softContext:
|
||||
inference.soft_context_percent === undefined
|
||||
? ""
|
||||
: String(inference.soft_context_percent),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue