@cognipeer/agent-sdk 0.19.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Cognipeer
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # @cognipeer/agent-sdk
2
2
 
3
- [![npm](https://img.shields.io/npm/v/@cognipeer/agent-sdk?color=success)](https://npmjs.com/package/@cognipeer/agent-sdk) [Docs Website](https://docs.cognipeer.com/agent-sdk/)
3
+ **Lightweight, message-first TypeScript agent runtime for developers who want transparent tool calls, planning and tracing.**
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@cognipeer/agent-sdk)](https://www.npmjs.com/package/@cognipeer/agent-sdk) [![npm downloads](https://img.shields.io/npm/dm/@cognipeer/agent-sdk)](https://www.npmjs.com/package/@cognipeer/agent-sdk) [![license](https://img.shields.io/github/license/Cognipeer/agent-sdk)](LICENSE) [![docs](https://img.shields.io/badge/docs-docs.cognipeer.com-0A7CFF)](https://docs.cognipeer.com/agent-sdk/) [![GitHub stars](https://img.shields.io/github/stars/Cognipeer/agent-sdk?style=social)](https://github.com/Cognipeer/agent-sdk)
6
+
7
+ [Docs](https://docs.cognipeer.com/agent-sdk/) · [Quick start](#quick-start) · [Examples](examples/) · [Changelog](CHANGELOG.md) · [Contact](mailto:developer@cognipeer.com)
8
+
9
+ **Adoption:** in active use at close to 20 companies that Cognipeer supports as enterprise customers. Open-source users are not included in this count.
4
10
 
5
11
  Lightweight, message-first agent runtime that keeps tool calls transparent, supports provider-native reasoning plus post-tool reflection, automatically summarizes long histories, and ships with planning, multi-agent handoffs, and structured tracing.
6
12
 
@@ -427,7 +433,7 @@ Exported helpers (`agent-sdk/src/index.ts`):
427
433
 
428
434
  **Provider-level controls** (`createProvider`):
429
435
  - `retry` – automatic 429 / 5xx retry with exponential backoff and `Retry-After` support
430
- - `prompt_caching: { enabled: true }` – Anthropic `cache_control` and Bedrock `cachePoint` breakpoints for ~90% input-token savings on long tool-heavy runs
436
+ - `prompt_caching: { enabled: true, strategy?, ttl? }` – Anthropic `cache_control` and Bedrock `cachePoint` breakpoints on the system prompt and tools; the default `strategy: "auto"` also caches the growing conversation (Anthropic automatic caching, a rolling Bedrock checkpoint), `"static"` keeps only the fixed prefix; `ttl: "1h"` for long pauses between calls. Cache reads cost a fraction of the input price on long tool-heavy runs
431
437
 
432
438
  ## Tracing & observability
433
439
 
@@ -504,3 +510,18 @@ npm publish --access public
504
510
 
505
511
  Contributions welcome! Open issues or PRs against `main` with reproduction details when reporting bugs.
506
512
 
513
+ ## Cognipeer open-source projects
514
+
515
+ | Project | What it does |
516
+ | --- | --- |
517
+ | [Cognipeer Console](https://github.com/Cognipeer/console) | Self-hosted AI gateway and control plane: OpenAI-compatible routing, RAG, MCP hub, guardrails and agent tracing |
518
+ | [console-sdk](https://github.com/Cognipeer/console-sdk) | TypeScript SDK for the Cognipeer Console API |
519
+ | [agent-server](https://github.com/Cognipeer/agent-server) | Ready-made REST API layer for AI agents |
520
+ | [chat-ui](https://github.com/Cognipeer/chat-ui) | React chat UI components for AI agents |
521
+ | [to-markdown](https://github.com/Cognipeer/to-markdown) | Convert PDF, Office, HTML and more to Markdown for LLM pipelines |
522
+ | [graph-builder](https://github.com/Cognipeer/graph-builder) | Turn text sources into a queryable graph |
523
+ | [cognipeer-observability](https://github.com/Cognipeer/cognipeer-observability) | Drop-in agent tracing for LangChain, LangGraph, OpenAI Agents and OpenTelemetry |
524
+
525
+ If this project is useful to you, a ⭐ on GitHub helps other developers find it.
526
+
527
+ Questions or enterprise support: [developer@cognipeer.com](mailto:developer@cognipeer.com).