🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@agentskit/chat-protocol

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentskit/chat-protocol

Versioned turn protocol for AgentsKit Chat.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
6
-82.35%
Maintainers
1
Weekly downloads
 
Created
Source

@agentskit/chat-protocol

Framework-neutral v1 turn events for AgentsKit Chat.

import { decodeTurnEvent } from '@agentskit/chat-protocol'

const result = decodeTurnEvent(untrustedInput)
if (!result.ok) return result.diagnostic

The package transports snapshots of canonical AgentsKit state. It does not implement a controller, stream reducer, transport, or persistence layer.

It also owns the accepted versioned site-config, local-knowledge, and unified-answer envelopes used by the deterministic answer plane. Decode untrusted data with decodeDeterministicSiteConfig and decodeAnswerResponse; cryptographically verify local artifacts with verifyLocalKnowledgeArtifact. See the deterministic answer guide.

The package also validates the additive Ask request, trusted backend site configuration, grounded sources, CAS session records, typed diagnostics, usage, and privacy-safe metrics used by createAskServiceHandler. See the backend guide.

For one canonical assistant message containing both streamed prose and registered application components, use createAssistantContentEncoder and decode with decodeAssistantContent. Every text chunk must pass through the encoder; raw model output must never be appended to the envelope. See the v1 protocol guide.

FAQs

Package last updated on 13 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts