工具调用

This commit is contained in:
ChenXL97 2023-11-14 19:41:34 +08:00
parent 03016764eb
commit 14e2fce6d1
3 changed files with 1 additions and 3 deletions

View File

@ -44,7 +44,6 @@ class Bahavior(ptree.behaviour.Behaviour):
# self.valid_arg_list.append((x.strip for x in line.split(",")))
self.args = args
super().__init__(self.name)
def _update(self) -> ptree.common.Status:

View File

@ -74,7 +74,6 @@ if __name__ == "__main__":
# create_chat_completion("chatglm3-6b", chat_messages, use_stream=False)
# query = "你是谁"
# run_conversation(query, stream=False)
#

View File

@ -135,7 +135,7 @@ def create_sub_task(
return goal
@register_tool
def find_near_object(
def get_object_info(
object: Annotated[str, '需要判断所在位置的物体', True]
) -> str:
"""