npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@agentic-eng/core

v0.2.4

Published

Shared types, enums, and errors for the EASA framework.

Downloads

293

Readme

@agentic-eng/core

Shared types, enums, and error classes for the Agentic Engineering Framework.

npm License: MIT TypeScript


Part of the Agentic Engineering Framework

The Agentic Engineering Framework is a minimal, type-safe TypeScript framework for building LLM-powered agent systems. It provides building blocks for agents that can reason, use tools, persist knowledge, and emit observable events — with zero LLM lock-in.

| Package | Description | | --- | --- | | @agentic-eng/agent | Agent class and reasoning loop — start here | | @agentic-eng/core (this package) | Shared types, enums, and error classes | | @agentic-eng/provider | Interface-only contracts (LlmProvider, MemoryProvider, ObservabilityProvider) | | @agentic-eng/tool | Tool interface and ToolRegistry | | @agentic-eng/memory | Memory implementations (FlatFileMemory) | | @agentic-eng/observability | Observability implementations (ConsoleObserver, NoopObserver) |

Most users don't need to install this package directly. It is automatically included as a dependency of @agentic-eng/agent, which re-exports all core types. Install @agentic-eng/core directly only if you are building a standalone provider or tool package that doesn't depend on agent.


What This Package Does

@agentic-eng/core is the foundation layer of the Agentic Engineering Framework. It provides:

  1. All shared TypeScript types used across every framework package
  2. All error classes for structured error handling

Every other package depends on core — it is the single source of truth for the framework's type system.


Installation

npm install @agentic-eng/core

Or, if you're using @agentic-eng/agent, all core types are already re-exported:

npm install @agentic-eng/agent    # includes core types automatically

Types

All foundational types used across framework packages:

  • Message typesRole, Message, ChatOptions, Completion, CompletionChunk, TokenUsage
  • Reasoning typesReasoningAction, LLMReasoningResponse, IterationResult, ReasoningTrace, InvokeOptions, InvokeResult
  • Tool typesToolInputSchema, ToolDefinition, ToolCallRequest, ToolResult
  • Event typesEventType, AgentEvent
  • Memory typesMemoryEntry
import type { Message, Completion, CompletionChunk, MemoryEntry } from '@agentic-eng/core';

Deprecated Type Aliases

The following types have been renamed and will be removed after 31 May 2026:

| Old Name (deprecated) | New Name | | --- | --- | | ChatResponse | Completion | | ChatChunk | CompletionChunk |

Both old and new names work today — update your code at your convenience before the removal date.


Error Classes

All custom errors extend AgenticError, making it easy to catch any framework error:

| Error | When it's thrown | | --- | --- | | AgenticError | Base class for all framework errors | | ProviderError | LLM provider call fails | | AgentConfigError | Invalid agent configuration (empty name, missing provider) | | MaxIterationsError | Reasoning loop exceeded maxIterations limit | | ReasoningParseError | LLM response is not valid JSON | | ToolExecutionError | A tool's execute() method throws |

import { AgenticError, ProviderError, MaxIterationsError } from '@agentic-eng/core';

try {
  await agent.invoke('Complex task');
} catch (error) {
  if (error instanceof MaxIterationsError) {
    console.log(`Gave up after ${error.iterationsCompleted} iterations`);
  } else if (error instanceof AgenticError) {
    console.log('Framework error:', error.message);
  }
}

How It Fits Together

@agentic-eng/core (types + errors)
    ↑
@agentic-eng/provider (interfaces: LlmProvider, MemoryProvider, ObservabilityProvider)
    ↑
@agentic-eng/tool (Tool interface + ToolRegistry)
@agentic-eng/memory (FlatFileMemory — implements MemoryProvider)
@agentic-eng/observability (ConsoleObserver — implements ObservabilityProvider)
    ↑
@agentic-eng/agent (Agent class — composes everything)

Feedback & Contact

Have questions, feedback, or ideas? We'd love to hear from you:

License

MIT