Skip to content

Add add_datasource tool#43

Open
satchelbaldwin wants to merge 3 commits into
mainfrom
add_datasource_tool
Open

Add add_datasource tool#43
satchelbaldwin wants to merge 3 commits into
mainfrom
add_datasource_tool

Conversation

@satchelbaldwin

Copy link
Copy Markdown
Contributor
  • move to general idea of "datasources"
  • add add_datasource tool with hot reloading

@brandomr brandomr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add in the PR conversation what API you use to test?

Comment thread src/biome/agent.py Outdated
return f'Successfully added {datasource} and it is now available for use.'

@tool()
async def get_available_apis(self) -> list:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets update this function name

Comment thread src/biome/agent.py Outdated
datasource: str,
description: str,
base_url: str,
schema_location: str,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/biome/api_agent.yaml
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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@satchelbaldwin

Copy link
Copy Markdown
Contributor Author

i was testing with the swagger-api pet store example

add the datasource "pet shop example". the base url is https://petshop.localhost/. an openapi spec can be found here: https://raw.githubusercontent.com/swagger-api/swagger-petstore/refs/heads/master/src/main/resources/openapi.yaml

and also, with this commit, the local file as well

add the datasource "pet shop example". the base url is https://petshop.localhost/. an openapi spec can be found here: ./openapi.yaml

visible in beaker file manager.

also, i was testing it by asking for questions about the api and writing code against it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants