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

@polymind-inc/agent-framework-core

v0.3.0

Published

Core abstractions for the Agent Framework (TypeScript): Agent, AgentSession, Message/Content, tools, and the ChatClient seam.

Downloads

1,221

Readme

@polymind-inc/agent-framework-core

Constituent package. The supported way to use the Agent Framework is the main @polymind-inc/agent-framework package, whose root entry (and /testing subpath) re-exports everything here and pins this package to its exact version. Installing this package directly works and resolves to the same modules, but examples and documentation import through the main package.

Runtime-agnostic core of the Agent Framework for TypeScript: Agent, AgentSession, the Message / Content model, tool() with Standard Schema support, the function-calling loop, Agent Skills, and the ChatClient seam that providers implement. ESM only; the sole runtime dependency is @opentelemetry/api. Semantics follow the Microsoft Agent Framework reference implementations (.NET / Python / Go).

npm install @polymind-inc/agent-framework-core

A chat client comes from a provider package — for example @polymind-inc/agent-framework-openai, @polymind-inc/agent-framework-anthropic or @polymind-inc/agent-framework-foundry. A custom client implements the ChatClient interface directly. One that manages conversations service-side should declare which conversation ids are stable anchors via ChatClientMetadata.stableConversationId; the function-calling loop and the agent's session propagation consult that predicate, and without it every reported conversation id advances the chain between tool rounds.

Requirements: Node.js >= 24, ESM only (no CommonJS build).

Known limitations:

  • Workflows are not implemented yet (graph/superstep engine, checkpointing, orchestrations — planned for a future release).
  • The core runs in browsers, but calling model providers directly from a browser exposes your API key — run agents server-side.
  • Agent Skills come from code (inlineSkill), from a SKILL.md document you supply (markdownSkill, with parseSkillMarkdown for the header alone), or from a SkillsSource you implement. Walking a directory of SKILL.md files is not part of this package — the core has no filesystem, by design; the extensibility examples show the dozen lines of node:fs it takes.
  • agent.run() returns a hybrid thenable/async-iterable stream. Type-aware lint rules such as @typescript-eslint/no-floating-promises will flag a deliberately unconsumed run() call; consume the stream or void it explicitly.

Part of Agent Framework for TypeScript — an independent community implementation of the Microsoft Agent Framework programming model. Not an official Microsoft product, and not affiliated with or endorsed by Microsoft. MIT licensed.