Skip to content

Variable: DefaultModelResponseSchema

const DefaultModelResponseSchema: ZodObject<{ agentId: ZodString; displayName: ZodNullable<ZodString>; model: ZodNullable<ZodString>; }, $strip>

JSON payload returned by GET ${basePath}/default-model[?agentId=]. The static default model the agent resolves to when the client pins no model, as both the raw serving-endpoint model id and a displayName (the humanized label the picker shows). Both are null when the agent decides its model dynamically at call time (nothing static to advertise). Lets the picker label its default option WITHOUT waiting on the /models catalogue, so it never flashes a raw id on load. Kept off the static bootstrap clientConfig on purpose: it is per-agent and can be dynamic, so it is fetched like /models.