@seneca/bedrock-chat
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

@seneca/bedrock-chat

Seneca Bedrock Chat is a plugin for Seneca

Expose AWS Bedrock LLM Chat API via standard sys:chat message patterns.

This plugin is part of a family of plugins that wrap LLM Chat APIs.

Production Example: Voxgig Podmind

npm version build Coverage Status Known Vulnerabilities DeepScan grade Maintainability

Voxgig This open source module is sponsored and supported by Voxgig.

Install

$ npm install @seneca/bedrock-chat

Quick Example

seneca.use('bedrock-chat')

let chatRes = await seneca.post('sys:chat,submit:query', {
  query: 'what is devrel?',
})
// ==== { ok: true, answer: 'DevRel stands for Developer Relations...' }

More Examples

Review the unit tests for more examples.

Options

  • debug : boolean
  • global : boolean
  • bedrock : object
  • config : object
  • init$ : boolean

Action Patterns

Action Descriptions

« sys:chat »

No description provided.


« sys:chat,chat:bedrock,invoke:model »

Invoke LLM with a prompt.

Parameters

  • prompt : string
  • config : object

« sys:chat,chat:bedrock,submit:query »

Submit a chat query, optionally specifying chat provider.

Parameters

  • query : string

Motivation

Support

API

Contributing

Background

Readme

Keywords

Package Sidebar

Install

npm i @seneca/bedrock-chat

Weekly Downloads

57

Version

0.0.4

License

MIT

Unpacked Size

17.4 kB

Total Files

11

Last publish

Collaborators

  • lmscunha
  • alex01
  • lilsweetcaligula
  • stokesriona
  • rjrodger