Shared types, utilities, and constants for AgentKernel
npm install @agentkernel/sharedShared types, utilities, and constants for the AgentKernel monorepo.
``bash`
pnpm add @agentkernel/shared
- Result types — Ok and Err for type-safe error handling (neverthrow pattern)
- Shared constants — Common configuration defaults and limits
- Type definitions — Shared TypeScript interfaces used across packages
`typescript
import { ok, err, type Result } from '@agentkernel/shared';
function parseConfig(input: string): Result
try {
return ok(JSON.parse(input));
} catch (e) {
return err(new Error('Invalid config'));
}
}
``
See the main repo for full documentation.
MIT