Package-level declarations

Types

Link copied to clipboard
data class Api(val name: String, val classes: List<ApiClass>, val totalClasses: Int, val totalMethods: Int)

Representation of an API with its classes and methods.

Link copied to clipboard
data class ApiClass(val name: String, val packageName: String, val type: String, val methods: List<ApiMethod> = emptyList(), val annotations: List<String> = emptyList(), val superTypes: List<String> = emptyList(), val comment: String? = null)
Link copied to clipboard

Unified API extractor that can work with both source code and compiled bytecode.

Link copied to clipboard
data class ApiMethod(val name: String, val parameters: List<String>, val returnType: String, val annotations: List<String> = emptyList(), val comment: String? = null)
Link copied to clipboard
class ApiReference(val description: String, api: Api, classLimit: Int = 100) : LlmReference

API reference that can be exposed to LLMs as a prompt contribution and tools.