Yifan-Song793 / RestGPT

An LLM-based autonomous agent controlling real-world applications via RESTful APIs
MIT License
1.31k stars 97 forks source link

How API selector works? #1

Closed pplonski closed 1 year ago

pplonski commented 1 year ago

Hi!

Great article. Thank you for code repository.

I have a question, how does APISelector work? Is it LLM prompt with information about API endpoints in the prompt?

Yifan-Song793 commented 1 year ago

Thanks for your interest in our work. Indeed, our API selector is designed to select APIs based on the descriptions of all available API endpoints. As the limited context window of LLM, we rely on the API descriptions provided in the OpenAPI Specification (OAS), typically consisting of a single sentence. For more detailed information, please refer to the prompt provided in the API selector.py.

pplonski commented 1 year ago

Thank you @Yifan-Song793!