Documentation / @agentick/core / Agentick
Variable: Agentick ​
constAgentick: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 });