Expand description
AI-powered example generation for skill tools
This module provides infrastructure for generating synthetic usage examples using LLMs, with real-time streaming feedback via SSE events.
Structs§
- Accuracy
Evaluator - Evaluator for measuring accuracy of generated examples
- Accuracy
Metrics - Comprehensive accuracy metrics for a batch of generated examples
- Agent
Step - A step in the agent’s reasoning process (self-ask-with-search pattern)
- Chat
Message - Chat message for multi-turn conversations
- Completion
Request - LLM completion request
- Deterministic
Mock Provider - A deterministic mock LLM provider for testing
- Example
Generator - AI-powered example generator
- Example
Validator - Validator for generated examples
- Failing
Mock Provider - A mock provider that always fails
- Generated
Example - A generated usage example for a tool
- Generation
Stream Builder - Builder for creating generation event streams
- Generator
Config - Configuration for the example generator
- LlmChunk
- A chunk from streaming completion
- LlmResponse
- Response from an LLM completion
- Parsed
Command - Parsed command representation
- Performance
Metrics - Performance metrics for generation
- Search
Result Ref - A reference to a search result (lightweight for streaming)
- Token
Usage - Token usage statistics
- Tool
Metrics - Metrics for a single tool’s generated examples
- Validation
Result - Result of validating an example
Enums§
- Generation
Event - Events emitted during AI-powered example generation
Traits§
- LlmProvider
- Trait for LLM providers
Functions§
- aws_
s3_ tool - Create an AWS S3 tool
- create_
llm_ provider - Create an LLM provider from configuration
- docker_
build_ tool - Create a Docker build tool
- kubernetes_
apply_ tool - Create a complex Kubernetes tool fixture
- mock_
response_ for_ tool - Get a mock JSON response for a tool
- mock_
response_ with_ errors - Get a mock response with some invalid examples for testing validation
- simple_
tool - Create a simple tool with minimal parameters
- tool_
with_ constraints - Create a tool with enum constraints