This commit is contained in:
Liu Zhicong
2023-09-22 20:11:27 -07:00
parent add4357c24
commit c289c811ee
4 changed files with 15 additions and 9 deletions
+3 -4
View File
@@ -280,11 +280,11 @@ class AIAgent:
def _get_inner_functions(self) -> dict:
if self.owner_env is None:
return None
return None,0
all_inner_function = self.owner_env.get_all_ai_functions()
if all_inner_function is None:
return None
return None,0
result_func = []
result_len = 0
@@ -295,8 +295,7 @@ class AIAgent:
if func_name not in self.enable_function_list:
logger.debug(f"ageint {self.agent_id} ignore inner func:{func_name}")
continue
else:
continue
this_func = {}
this_func["name"] = func_name
this_func["description"] = inner_func.get_description()
+1 -1
View File
@@ -60,5 +60,5 @@ class KnowledgeStore:
def get_vector_store(self, model_name: str) -> VectorBase:
if model_name not in self.vector_store:
self.vector_store[model_name] = ChromaVectorStore(self.root, model_name)
self.vector_store[model_name] = ChromaVectorStore(model_name)
return self.vector_store[model_name]
+9 -4
View File
@@ -30,8 +30,8 @@ google-auth==2.23.0
google-cloud==0.34.0
google-cloud-texttospeech==2.14.1
googleapis-common-protos==1.60.0
grpcio==1.58.0
grpcio-status==1.58.0
grpcio
grpcio-status
h11==0.14.0
httpcore==0.17.3
httptools==0.6.0
@@ -58,7 +58,7 @@ posthog==3.0.2
proglog==0.1.10
prompt-toolkit==3.0.39
proto-plus==1.22.3
protobuf==4.24.3
protobuf
pulsar-client==3.3.0
pyasn1==0.5.0
pyasn1-modules==0.3.0
@@ -81,4 +81,9 @@ sympy==1.12
telegram==0.0.1
tokenizers==0.14.0
toml==0.10.0
chardet
pysocks
chardet
pydub
aiosqlite
python-telegram-bot
pydub