参考:
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(
model="deepseek-coder",
messages
标签:Function,chat,deepseek,messages,agent,blog,Call,https
From: https://blog.csdn.net/weixin_42357472/article/details/140891660