摘要: # function_call 是大模型返回的结构化格式(如 OpenAI 的 function calling / tool calling) { "function_call": { "name": "get_weather", "arguments": "{ \"location\": \"S 阅读全文
posted @ 2025-06-09 19:38 十三山入秋 阅读(63) 评论(1) 推荐(0)
摘要: result = getattr(self.tools, action)(**args) # agent.py class Memory: def __init__(self): self.log = [] def save(self, message): self.log.append(messa 阅读全文
posted @ 2025-06-09 19:33 十三山入秋 阅读(21) 评论(0) 推荐(0)