Spaces:
Sleeping
Sleeping
Commit
·
6523fd0
1
Parent(s):
9ab03b1
Updated state and tools
Browse files
brainstroming_agent/utils/state.py
CHANGED
|
@@ -23,3 +23,8 @@ class BrainstromTopicFormatter(BaseModel):
|
|
| 23 |
topic2:str=Field(description="Second brainstorming topic of the story")
|
| 24 |
topic3:str=Field(description="Third brainstorming topic of the story")
|
| 25 |
topic4:str=Field(description="Fourth brainstorming topic of the story")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
topic2:str=Field(description="Second brainstorming topic of the story")
|
| 24 |
topic3:str=Field(description="Third brainstorming topic of the story")
|
| 25 |
topic4:str=Field(description="Fourth brainstorming topic of the story")
|
| 26 |
+
|
| 27 |
+
class QueryFormatter(BaseModel):
|
| 28 |
+
messages: str = Field(description="The message that user passes to the agent")
|
| 29 |
+
business_details: dict = Field (description="The business details that user passes to the agent")
|
| 30 |
+
|
brainstroming_agent/utils/tools.py
CHANGED
|
@@ -14,7 +14,7 @@ import re
|
|
| 14 |
import faiss
|
| 15 |
import ast
|
| 16 |
import pandas as pd
|
| 17 |
-
from .
|
| 18 |
|
| 19 |
os.environ['GROQ_API_KEY']=os.getenv('GROQ_API_KEY')
|
| 20 |
@tool("influencer's data-retrieval-tool", args_schema=QueryFormatter, return_direct=False,description="Retrieve influencer-related data for a given query.")
|
|
|
|
| 14 |
import faiss
|
| 15 |
import ast
|
| 16 |
import pandas as pd
|
| 17 |
+
from .state import QueryFormatter
|
| 18 |
|
| 19 |
os.environ['GROQ_API_KEY']=os.getenv('GROQ_API_KEY')
|
| 20 |
@tool("influencer's data-retrieval-tool", args_schema=QueryFormatter, return_direct=False,description="Retrieve influencer-related data for a given query.")
|