Abraham E. Tavarez commited on
Commit ·
eb8b538
1
Parent(s): 6b94ce1
tool calling agent
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
-
from agent import codeAgent
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
| 9 |
# --- Constants ---
|
|
@@ -15,7 +15,8 @@ class BasicAgent:
|
|
| 15 |
def __init__(self):
|
| 16 |
print("BasicAgent initialized.")
|
| 17 |
def __call__(self, question: str) -> str:
|
| 18 |
-
return codeAgent.run(question)
|
|
|
|
| 19 |
# print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 20 |
# fixed_answer = "This is a default answer."
|
| 21 |
# print(f"Agent returning fixed answer: {fixed_answer}")
|
|
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
+
from agent import codeAgent, toolCallingAgent
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
| 9 |
# --- Constants ---
|
|
|
|
| 15 |
def __init__(self):
|
| 16 |
print("BasicAgent initialized.")
|
| 17 |
def __call__(self, question: str) -> str:
|
| 18 |
+
# return codeAgent.run(question)
|
| 19 |
+
return toolCallingAgent.run(question)
|
| 20 |
# print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 21 |
# fixed_answer = "This is a default answer."
|
| 22 |
# print(f"Agent returning fixed answer: {fixed_answer}")
|