@seneca/bedrock-chat
v0.0.5
Published
Seneca Plugin for the AWS Bedrock Chat API.
Downloads
4
Readme
@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
| | 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
: booleanglobal
: booleanbedrock
: objectconfig
: objectinit$
: 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