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

@agentskit/chat-server

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-server

Web-standard server handler for AgentsKit Chat applications.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
5
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

@agentskit/chat-server

Web-standard request handler for AgentsKit Chat definitions. It composes the canonical AgentsKit controller and memory with AgentsKit Chat protocol/session contracts.

const POST = createChatHandler({
  authenticate: async request => ({ ok: true, context: await authenticate(request) }),
  resolveDefinition: context => chats.forTenant(context.tenantId),
  sessionStorage: context => sessions.forTenant(context.tenantId),
})

The returned function accepts a standard Request and returns a standard streaming Response.

Semantic questions escalated by the deterministic plane use the trusted Ask vertical:

const POST = createAskServiceHandler({
  authenticate,
  resolveSite,
  resolveSubjectId: identity => identity.subjectId,
  retrievers: { local: localRag, federated: federatedRag },
  generator,
  sessionStore,
  rateLimit,
  onMetric,
})

Site/corpus/assistant authority is resolved server-side. Successful responses are cited Ask NDJSON; hosted and self-hosted routes mount the same factory. See the backend 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