Add Tool Input Examples Middleware
fun AddToolInputExamplesMiddleware(examplesByTool: Map<String, List<String>>): LanguageModelMiddleware(source)
Appends per-tool input examples to the tool description. For providers that don't natively accept examples on tool definitions (most of them besides Anthropic), this lets the example pairs influence the model via the description text instead.
Mirrors v6's addToolInputExamplesMiddleware. Pass a map of tool name → list of example input JSON strings. Examples are appended in "Example:
Since
0.3.0-beta01