(input: SendMessageOptionsInput)
| 33 | * Single source of truth for the send-option shape — backend enforces per-model policy. |
| 34 | */ |
| 35 | export function buildSendMessageOptions(input: SendMessageOptionsInput): SendMessageOptions { |
| 36 | return { |
| 37 | thinkingLevel: input.thinkingLevel, |
| 38 | model: input.model, |
| 39 | agentId: input.agentId, |
| 40 | providerOptions: input.providerOptions, |
| 41 | experiments: { ...input.experiments }, |
| 42 | allowAgentSetGoal: true, |
| 43 | disableWorkspaceAgents: input.disableWorkspaceAgents ? true : undefined, |
| 44 | }; |
| 45 | } |
no outgoing calls
no test coverage detected