MCPcopy
hub / github.com/coder/mux / parseWorkflowAgentModelString

Function parseWorkflowAgentModelString

src/node/services/workflows/WorkflowRunner.ts:2986–3000  ·  view source on GitHub ↗
(rawValue: unknown)

Source from the content-addressed store, hash-verified

2984}
2985
2986function parseWorkflowAgentModelString(rawValue: unknown): string | undefined {
2987 if (rawValue === undefined) {
2988 return undefined;
2989 }
2990 assert(
2991 typeof rawValue === "string" && rawValue.trim().length > 0,
2992 "agent model must be a non-empty string"
2993 );
2994 const normalized = normalizeModelInput(rawValue);
2995 assert(
2996 normalized.model != null,
2997 `agent model "${rawValue}" must be a known alias or provider:model string`
2998 );
2999 return normalized.model;
3000}
3001
3002function parseWorkflowAgentThinkingLevel(rawValue: unknown): ParsedThinkingInput | undefined {
3003 if (rawValue === undefined) {

Callers 1

parseWorkflowAgentSpecFunction · 0.85

Calls 2

normalizeModelInputFunction · 0.90
assertFunction · 0.50

Tested by

no test coverage detected