Add add_datasource tool#43
Conversation
satchelbaldwin
commented
Apr 10, 2025
- move to general idea of "datasources"
- add add_datasource tool with hot reloading
…hot-reloading of new api specs
brandomr
left a comment
There was a problem hiding this comment.
could you add in the PR conversation what API you use to test?
| return f'Successfully added {datasource} and it is now available for use.' | ||
|
|
||
| @tool() | ||
| async def get_available_apis(self) -> list: |
There was a problem hiding this comment.
lets update this function name
| datasource: str, | ||
| description: str, | ||
| base_url: str, | ||
| schema_location: str, |
There was a problem hiding this comment.
i think we may want to be somewhat more flexible--e.g. if a user uploads a schema file we could pull it from disk. for some users that may be more intuitive/easy than finding the URL where the schema is hosted.
| You will be given the entire API documentation. | ||
| When you write code against this API, you should avail yourself of the appropriate query parameters, | ||
| default_cache_body: !fill | | ||
| You will be given the entire API documentation. |
There was a problem hiding this comment.
Is this file used anymore at all? I think it might actually not be. If it is, we perhaps want to say You will be given the entire data source or API documentation instead of just API documentation
|
i was testing with the swagger-api pet store example
and also, with this commit, the local file as well
visible in beaker file manager. also, i was testing it by asking for questions about the api and writing code against it |