Skip to content

senecajs/seneca-bedrock-chat

Repository files navigation

@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

About

Seneca Plugin for the AWS Bedrock Chat API

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published