Companion

object Companion

Functions

Link copied to clipboard
fun fromLlmReference(llmReference: LlmReference, namingStrategy: StringTransformer = StringTransformer.IDENTITY): McpToolExport

Export the tools from an LlmReference. Uses the reference's built-in LlmReference.namingStrategy, which prefixes tool names with a lowercased, normalized version of the reference name. An additional naming strategy can be applied on top of the reference's strategy.

Link copied to clipboard
fun fromLlmReferences(llmReferences: List<LlmReference>, namingStrategy: StringTransformer = StringTransformer.IDENTITY): McpToolExport

Export tools from multiple LlmReference instances. Each reference's LlmReference.namingStrategy is applied, prefixing tool names with the lowercased reference name to avoid naming conflicts. An additional naming strategy can be applied on top of each reference's strategy.

Link copied to clipboard

Export the tools on this ToolObject. The ToolObject.namingStrategy and ToolObject.filter are applied.

Link copied to clipboard
fun fromToolObjects(toolObjects: List<ToolObject>, namingStrategy: StringTransformer = StringTransformer.IDENTITY): McpToolExport

Export tools from multiple ToolObject instances. Each ToolObject's ToolObject.namingStrategy and ToolObject.filter are applied. Tools with duplicate names (after transformation) are deduplicated.