Skip to content

Documentation / @agentick/google / google

Function: google()

google(config?): ModelClass

Defined in: google.ts:354

Convenience factory for creating Google model.

Returns a ModelClass that can be used as:

  • JSX component: <model><Agent /></model>
  • App config: createApp(Agent, { model })
  • Direct calls: await model.generate(input)

Parameters

config?

GoogleAdapterConfig

Returns

ModelClass

Example

typescript
const model = google({ model: 'gemini-2.0-flash' });

// As JSX
<model><MyAgent /></model>

// With createApp
const app = createApp(MyAgent, { model });

Released under the ISC License.