Spaces:
Running
Running
vectara-agentic
Browse files- agent.py +2 -2
- app.py +1 -1
- requirements.txt +1 -1
- test_agent.py +1 -1
agent.py
CHANGED
@@ -9,8 +9,8 @@ from sqlalchemy import create_engine
|
|
9 |
from dotenv import load_dotenv
|
10 |
load_dotenv(override=True)
|
11 |
|
12 |
-
from
|
13 |
-
from
|
14 |
|
15 |
def create_assistant_tools(cfg):
|
16 |
|
|
|
9 |
from dotenv import load_dotenv
|
10 |
load_dotenv(override=True)
|
11 |
|
12 |
+
from vectara_agentic.agent import Agent
|
13 |
+
from vectara_agentic.tools import ToolsFactory, VectaraToolFactory
|
14 |
|
15 |
def create_assistant_tools(cfg):
|
16 |
|
app.py
CHANGED
@@ -12,7 +12,7 @@ from utils import thumbs_feedback, escape_dollars_outside_latex, send_amplitude_
|
|
12 |
import sqlite3
|
13 |
from datasets import load_dataset
|
14 |
|
15 |
-
from
|
16 |
from agent import initialize_agent, get_agent_config
|
17 |
|
18 |
|
|
|
12 |
import sqlite3
|
13 |
from datasets import load_dataset
|
14 |
|
15 |
+
from vectara_agentic.agent import AgentStatusType
|
16 |
from agent import initialize_agent, get_agent_config
|
17 |
|
18 |
|
requirements.txt
CHANGED
@@ -8,4 +8,4 @@ langdetect==1.0.9
|
|
8 |
langcodes==3.4.0
|
9 |
datasets==2.14.7
|
10 |
uuid==1.30
|
11 |
-
git+https://{GITHUB_TOKEN}@github.com/vectara/vectara-
|
|
|
8 |
langcodes==3.4.0
|
9 |
datasets==2.14.7
|
10 |
uuid==1.30
|
11 |
+
git+https://{GITHUB_TOKEN}@github.com/vectara/py-vectara-agentic.git
|
test_agent.py
CHANGED
@@ -2,7 +2,7 @@ import unittest
|
|
2 |
import os
|
3 |
|
4 |
from omegaconf import OmegaConf
|
5 |
-
from
|
6 |
|
7 |
from app import setup_db
|
8 |
from agent import initialize_agent
|
|
|
2 |
import os
|
3 |
|
4 |
from omegaconf import OmegaConf
|
5 |
+
from vectara_agentic.agent import Agent
|
6 |
|
7 |
from app import setup_db
|
8 |
from agent import initialize_agent
|