4 ms·
A related concept is LLM-driven API design. First write the comment of what the API function should do, then let the LLM write the function call, it will pick t
by jobigoud 2y ago
A related concept is LLM-driven API design. First write the comment of what the API function should do, then let the LLM write the function call, it will pick the most expected naming and argument order, then you write the API using this function prototype.
And maybe if the LLM sometimes tries to use different naming, you could add an overload of the same API end point, as long as it doesn't clash with an existing one. So in the end for anyone using your library with an LLM it would appear to just work.