OptionalreasoningSupport: ReasoningSupportOptionalreasoningApi: ReasoningApiOptionalmaxInputTokens: numberOptionalserverTools: ServerToolDescriptor[]ReadonlyidOptionalmaxOptionalreasoningOptionalreasoningOptionalserverServer tools this model offers, declared code-level by the provider package.
Note: If you provide these, you must also provide vendor because server tools are vendor-specific.
ReadonlyvendorProvider identifier, used to key per-provider settings (e.g. server tool selections) and the capabilities UI.
ProtectedbuildSummarizes the provider-executed server tools (url_context / google_search) into finished ServerToolCalls for display. Gemini does not provide tool ids, so a fresh id is generated; these calls are informational and are not replayed into the conversation history.
OptionalurlContextMetadata: UrlContextMetadataOptionalgroundingMetadata: GroundingMetadataProtectedcreateBuilds the Gemini tools array, combining client function declarations with the enabled native server tools.
Note: combining native tools (googleSearch / urlContext) with functionDeclarations in a single
request requires a Gemini 2.0+ model. Older models (e.g. Gemini 1.5) reject the combination with a 400
error. Since adopters configure both the model and which server tools to offer, this is left to the
provider rather than silently dropping either set of tools.
ProtectedgetProtectedhandleProtectedhandleOptionalcancellationToken: CancellationTokenOptionaltoolMessages: Content[]ProtectedinitializeOptionalcancellationToken: CancellationToken
Implements the Gemini language model integration for Theia. Reasoning-level translation lives in googleReasoningFor.