AI Generation of API Documentation #11803
Replies: 3 comments
-
Honestly I've been waiting for the APIs to mature, the AIs to mature and know of the APIs and to be able to have a better vision of the code. I did try this a few times in the past and the results were not good. Either the wrong APIs were documented or output was very partial. I guess it's time to give it another shot |
Beta Was this translation helpful? Give feedback.
-
For sure worth another shot. Attaching two other examples. The doc for The API doc for the It's be worth a review to check the accuracy. 😄 Prompt for Claude was:
It did take a few iterations with each LLM but once the prompt is set, should be pretty quick to generate things. As for the API's being stable, seems new functions are added quite regularly so better to have something than not. Peripheral Manager API Docs.zip |
Beta Was this translation helpful? Give feedback.
-
Thank you, @Xylopyrographer, for bringing this topic back. Let me research if the LLM we have for our bot can be used to create docs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@me-no-dev @pedrominatel
The arduino-esp32 project exists to increase revenue to Espressif by providing an access pathway simpler than their native ESP-IDF IDE thereby increasing utilization and purchase of their ESP32 series of SoC's.
The teams behind this project have and continue to do outstanding work to reduce the complexity of extremely large set of functions, configurations, and build options when developing software for the ESP32 family by making the arduino-esp32 framework available and they are to be commended for their efforts.
In my personal experience, a barrier exists in adoption of the framework as the ESP32 family far exceeds the capabilities of the processors used by Arduino. Utilization of these features requires additions and deviations from and to the API's published and maintained by Arduino. These differences require documentation which unfortunately is not always published or maintained.
While an oft-repeated response would be "It's in the .h files." this is contrary to the point of the framework and the project to provide an easy access entry point to the ESP32 family as you have to know how and where to find a specific header file and as well this does not inform the user of things such as sequencing of initialization, order of calls and such.
The above is preamble to the question: With the plethora of AI tools available, why would the core release workflow not include a process where API documentation is generated and updated with those tools concurrent with the release?
As a quick example, the file below was generated by ChatGPT against the
HardwareSerial.h
file for core version 3.2.1.How hard would it be to, eventually, incorporate this across the entire core?
Let's have a conversation.
HardwareSerial API Documentation.md
HardwareSerial API Documentation_rst.txt
(Note, need to change the extension of the attached "
.txt
" file to be just ".rst
"Beta Was this translation helpful? Give feedback.
All reactions