JavaScript is disabled on your browser.
Skip navigation links
Overview
Package
Class
Tree
Index
Help
Summary:
Field
|
Optional
|
Required
Detail:
Field
|
Element
SEARCH:
Package
io.micronaut.mcp.annotations
Annotation Interface PromptCompletion
@Documented
@Retention
(
RUNTIME
)
@Target
(
METHOD
)
public @interface
PromptCompletion
Method annotation to define an MCP Prompt Completion.
Requesting Completions
Micronaut registers Completion singletons for beans with executable methods (e.g. methods in a class annotated with `@Singleton`) annotated with
PromptCompletion
.
Optional Element Summary
Optional Elements
Modifier and Type
Optional Element
Description
String
name
Field Summary
Fields
Modifier and Type
Field
Description
static final
String
ELEMENT_NAME
Constant value for
name()
indicating that the annotated element's name should be used as-is.
Field Details
ELEMENT_NAME
static final
String
ELEMENT_NAME
Constant value for
name()
indicating that the annotated element's name should be used as-is.
See Also:
Constant Field Values
Element Details
name
String
name
Returns:
The prompt name this completion refers to.
Default:
"<<element name>>"