Skip to content

Commit 519b9e3

Browse files
committed
docs(knowledge): add support for additional HTTP methods
Extend `API_METHODS` to include HEAD, OPTIONS, and TRACE. Improve documentation for `KnowledgeFunctionProvider` with detailed usage examples and analysis modes.
1 parent a8ac29d commit 519b9e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/main/kotlin/cc/unitmesh/devti/bridge/knowledge/KnowledgeFunctionProvider.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ val API_METHODS: List<String> = listOf("GET", "POST", "PUT", "DELETE", "PATCH",
3131
*
3232
* ### Example Output:
3333
* The output of the `execute` method is a string that includes the related code snippets, their paths, and the language of the code. For example:
34-
* ```
35-
* Here is /knowledge:GET#/api/blog related code: ```Kotlin
34+
* <devin>
35+
* Here is /knowledge:GET#/api/blog related code:
36+
* ```Kotlin
3637
* // src/main/kotlin/com/example/BlogController.kt
3738
* @GetMapping("/api/blog")
3839
* fun getBlogBySlug(@PathVariable slug: String): Blog {
3940
* return blogService.getBlogBySlug(slug)
4041
* }
4142
* ```
43+
* </devin>
4244
*
4345
*/
4446
class KnowledgeFunctionProvider : ToolchainFunctionProvider {

0 commit comments

Comments
 (0)