ContextAwareFunction

fun interface ContextAwareFunction

Functional interface for context-aware tool implementations. Use when the tool needs out-of-band metadata (auth tokens, tenant IDs, etc.).

Functions

Link copied to clipboard
abstract fun invoke(input: String, context: ToolCallContext): Tool.Result