例如有如下的 spec, 该怎么将其转化为能够发送 http 请求的 tool, 然后给相应的 agent 去使用呢...
--- openapi: 3.0.3 info: title: openapi-server API version: "1.0" servers: - url: http://localhost:8080 paths: /hello: get: tags: - Greeting Resource responses: "200": description: OK content: text/plain: schema: type: string
![]() | 1 Unboundwill 2024-07-24 09:57:57 +08:00 OpenAPI spec 转换为 SDK 有标准的工具: https://github.com/OpenAPITools/openapi-generator 先调用 OpenAPI Generator 生成需要的 SDK ,再让 Agent 调用这个 SDK |