工具调用
This commit is contained in:
parent
03016764eb
commit
14e2fce6d1
|
@ -44,7 +44,6 @@ class Bahavior(ptree.behaviour.Behaviour):
|
||||||
# self.valid_arg_list.append((x.strip for x in line.split(",")))
|
# self.valid_arg_list.append((x.strip for x in line.split(",")))
|
||||||
self.args = args
|
self.args = args
|
||||||
|
|
||||||
|
|
||||||
super().__init__(self.name)
|
super().__init__(self.name)
|
||||||
|
|
||||||
def _update(self) -> ptree.common.Status:
|
def _update(self) -> ptree.common.Status:
|
||||||
|
|
|
@ -74,7 +74,6 @@ if __name__ == "__main__":
|
||||||
# create_chat_completion("chatglm3-6b", chat_messages, use_stream=False)
|
# create_chat_completion("chatglm3-6b", chat_messages, use_stream=False)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# query = "你是谁"
|
# query = "你是谁"
|
||||||
# run_conversation(query, stream=False)
|
# run_conversation(query, stream=False)
|
||||||
#
|
#
|
||||||
|
|
|
@ -135,7 +135,7 @@ def create_sub_task(
|
||||||
return goal
|
return goal
|
||||||
|
|
||||||
@register_tool
|
@register_tool
|
||||||
def find_near_object(
|
def get_object_info(
|
||||||
object: Annotated[str, '需要判断所在位置的物体', True]
|
object: Annotated[str, '需要判断所在位置的物体', True]
|
||||||
) -> str:
|
) -> str:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue