You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#!/usr/bin/env python
|
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
# @Time : 2025/3/16 16:29
|
|
|
|
|
# @Author : old-tom
|
|
|
|
|
# @File : __init__.py
|
|
|
|
|
# @Project : llmFunctionCallDemo
|
|
|
|
|
# @Desc : LLM function calling tools 定义
|
|
|
|
|
|
|
|
|
|
from llmtools.tool_impl import *
|
|
|
|
|
|
|
|
|
|
# tools定义,用于llm 绑定函数
|
|
|
|
|
STRUCT_TOOLS = [play_video, split_screen, play_video_record, switch_page, zoom_in, view_flight_details]
|
|
|
|
|
|
|
|
|
|
# tools定义与实际函数绑定,用于函数调用
|
|
|
|
|
TOOLS_BIND_FUNCTION = {
|
|
|
|
|
"play_video": play_video,
|
|
|
|
|
"split_screen": split_screen,
|
|
|
|
|
"play_video_record": play_video_record,
|
|
|
|
|
"switch_page": switch_page,
|
|
|
|
|
"zoom_in": zoom_in,
|
|
|
|
|
"view_flight_details": view_flight_details
|
|
|
|
|
}
|