Hi,
I'm trying to use the api agent in vscode but it's not recognising a file (I think). This is part of the webmethods tutorial for the agent. You ask the agent to create an openapi for a bookstore; then tell it to improve the docs; validate it; then ask it to fix the validation (obvs - it would be better for it not to have created dodgy api in the first place but I'm ignoring that ;-)
Here are the prompts:
1) Generate an openapi for a bookstore. It should allow adding, removing, updating and searching books.
Seems to work fine;
2) Enhance with descriptions and examples the openapi @ (choose the yaml file)
Seems to work fine
3) Validate api in file @ (choose the yaml file)
BARF:
To complete your request, the `input_file` field must contain a string value. Please ensure that the `input_file` in your request is specified as a string, such as `"input_file": "your_file_path.yaml"`. Please review and correct your input, then try the operation again.
4) if I get chatgpt to fix that then ask it to create the FastAPI server code
BARF:
To generate the FastAPI server code for the OpenAPI client using the `Bookstore-API.yaml` file, you'll need to follow these steps. However, the error you're encountering suggests that the `input_file` parameter expects a string value representing the path to the `Bookstore-API.yaml` file.
What's going on pls - at first it finds the file then it fails in later prompts ??
thanks !
John.