conscious-company
v0.0.5
Published
A NodeJS module for OpenAI assistants
Maintainers
Readme
AI Agents
AI Agents is an npm package that provides an Agent class for creating AI agents. These agents can be used in various applications to simulate intelligent behavior.
Installation
To install the package, use npm:
npm install conscious-companyOr yarn:
yarn add conscious-companyUsage
Here is an example of how to use the Agent class:
import Agent from 'conscious-company'
// Create a new agent
const agent = new Agent('Alice', 'You are a super helpful assistant', 'gpt-3.5-turbo');
// Ask the agent
const answer: string = agent.ask('What is the meaning of life?')
// start a commandline chat with the agent
agent.chat()API
Agent
Methods
chat(): Starts a Commandline Chat interface to chat with the Agent.ask(question: string): Ask the Agent one questionS
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
This project is licensed under the MIT License.
