Skip to content

Documentation / @agentick/core / Agentick

Variable: Agentick ​

const Agentick: AgentickInstance

Defined in: core/src/agentick-instance.ts:911

The default global Agentick instance.

All configuration and middleware registration starts here. The exported createApp and run are bound to this instance.

Example ​

typescript
import { Agentick, createApp, run } from 'agentick';

// Configure global middleware
Agentick.use('*', loggingMiddleware);
Agentick.telemetryProvider = myProvider;

// createApp and run use Agentick
const app = createApp(MyAgent, { model });
const result = await run(<MyAgent />, { messages, model });

// Create scoped instance with its own middleware
const scoped = Agentick.create();
scoped.use('model:generate', specialMiddleware);
const scopedResult = await scoped.run(<MyAgent />, { messages, model });

Released under the ISC License.