Add executionModel serialization to api client
Merged
MI
10mo ago+187+187+012345678901234567890123456789-0-0-0123456789
why
executionModel is not properly propagated to api
what changed
Serialize and send AgentConfig.executionModel to the API
test plan
Summary by cubic
Serialize and send AgentConfig.executionModel to the API, and document it in schemas so tool execution uses the intended model. Addresses Linear STG-1229 (execution model not reaching the API).
- Bug Fixes
- Serialize executionModel in StagehandAPIClient requests using prepareModelConfig when provided.
- Add executionModel to AgentConfigSchema (Zod) and OpenAPI (input/output) as ModelConfig or string with clear description.