fromLlmReference

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.

Note that the LlmReference prompt elements won't be exported, so you will need to consider that when prompting downstream LLMs to use the exported tools.

Parameters

llmReference

the LlmReference to export tools from

namingStrategy

additional naming strategy applied after the reference's strategy