LangSmith Python SDK Knowledge Tile
This Knowledge Tile provides comprehensive documentation for the langsmith Python package (version 0.6.2).
Structure
- tile.json - Package manifest
- docs/index.md - Entry point with overview and capability summaries
- docs/client.md - Complete Client API documentation
- docs/async-client.md - AsyncClient API documentation
- docs/tracing.md - Tracing decorators and context managers
- docs/run-management.md - RunTree and configuration
- docs/evaluation.md - Evaluation framework
- docs/testing.md - Pytest integration and expectations
- docs/caching.md - Cache implementations
- docs/utilities.md - Utility functions and anonymization
- docs/schemas.md - Core data types
Coverage
This Knowledge Tile documents:
- ✓ Full Client class with all methods (runs, projects, datasets, examples, feedback, annotation queues, prompts)
- ✓ Full AsyncClient class with all async methods
- ✓ Tracing system (@traceable, trace, tracing_context, get_current_run_tree, set_run_metadata)
- ✓ Run management (RunTree, configure)
- ✓ Evaluation framework (evaluate, aevaluate, RunEvaluator, EvaluationResult)
- ✓ Testing integration (@test, @unit, expect API)
- ✓ Caching (Cache, AsyncCache)
- ✓ Utilities (ContextThreadPoolExecutor, uuid7, anonymizer)
- ✓ All major data schemas (Run, Example, Dataset, Feedback, etc.)
Usage
This Knowledge Tile is designed for AI agents to understand and use the langsmith package effectively. All API blocks are marked with { .api } for easy identification, and comprehensive examples are provided throughout.