摘要: 在langchain中定义工具支持google-style的方式定义工具,定义方式如下 @tool(parse_docstring=True) def calculate(a: float, b: float, operation: str) -> float: """ 工具函数:计算两个数字的运算 阅读全文
posted @ 2026-01-19 11:35 干瘪咸鱼 阅读(18) 评论(0) 推荐(0)