You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tool_bundle.py 618B

123456789101112131415161718192021222324252627
  1. from pydantic import BaseModel
  2. from core.tools.entities.tool_entities import ToolParameter
  3. class ApiToolBundle(BaseModel):
  4. """
  5. This class is used to store the schema information of an api based tool.
  6. such as the url, the method, the parameters, etc.
  7. """
  8. # server_url
  9. server_url: str
  10. # method
  11. method: str
  12. # summary
  13. summary: str | None = None
  14. # operation_id
  15. operation_id: str | None = None
  16. # parameters
  17. parameters: list[ToolParameter] | None = None
  18. # author
  19. author: str
  20. # icon
  21. icon: str | None = None
  22. # openapi operation
  23. openapi: dict