Skip to content

Commit

Permalink
-- add version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Paulo Nobrega committed Dec 20, 2024
1 parent 8689884 commit 13079e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ai-agent-enterprise",
"description": "AI Agent simplifies the implementation and use of generative AI with LangChain, you can add components such as vectorized search services, conversation history, custom databases and API contracts",
"version": "1.0.0",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"files": [
Expand Down
1 change: 0 additions & 1 deletion src/services/chat-history/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const Services = {
class ChatHistoryFactory {
public static async create(settings: IDatabaseConfig): Promise<IChatHistory> {
const Service = Services[settings?.type];
// new Services[settings?.type](settings);

if (!Service) {
return await new MemoryChatHistory(settings).build();
Expand Down
8 changes: 4 additions & 4 deletions tests/agent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Agent from '../src/agent';
import { DataSource } from 'typeorm';
import { IAgentConfig } from '../src/interface/agent.interface';

const agentConfig = require(`./agent-configs/agent-cru.json`);
const agentConfig = require(`./agent-configs/agent-openapi.json`);

describe('Agent test', () => {
it('should Agent instance', (t, done) => {
Expand Down Expand Up @@ -55,12 +55,12 @@ describe('Agent test', () => {
});

agent.call({
question: 'Quem ganhou a ultima copa do mundo?',
// question: 'Quem ganhou a ultima copa do mundo?',
// question: 'Limpar o cache da pessoa a443bf0e-4c76-42f8-a084-c6544309f111?',
// question: 'Qual estoque do produto 2771?',
question: 'Qual estoque do produto 2771?',
// question: 'O que preciso fazer para reprocessear um pedido SAC?',
// question: 'qUAL MINHAS VISITAS AMANHA?',
chatThreadID: '11',
chatThreadID: '111',
// context: 'Eu me chamo Joao Paulo e sou Arquiteto de Software',
// context: 'Sou vendedor, meu telefone e o +5511970774145',
});
Expand Down

0 comments on commit 13079e6

Please sign in to comment.