参考:
https://platform.deepseek.com/api-docs/zh-cn/function_calling
https://blog.csdn.net/qq_31095905/article/details/139143778
https://blog.csdn.net/jacbo/article/details/136278619
##官方案例
https://cookbook.openai.com/examples/how_to_call_functions_with_chat_models
1、单agent
代码:
这里大模型用的deepseek测试
from openai import OpenAI
import json
def send_messages(messages):
response = client.chat.completions.create(