(cred: Pick<Credential, 'vendor' | 'lastModel'>)
| 81 | * single resolution point shared by quick-chat injection. |
| 82 | */ |
| 83 | export function resolveInjectionModel(cred: Pick<Credential, 'vendor' | 'lastModel'>): string | null { |
| 84 | return cred.lastModel ?? DEFAULT_MODEL_BY_VENDOR[cred.vendor] ?? null |
| 85 | } |
| 86 | |
| 87 | /** Pick the wire an agent should use from a credential's capabilities (null = none compatible). */ |
| 88 | export function pickAgentWire( |
no outgoing calls
no test coverage detected