@@ -876,6 +876,159 @@ export GOOGLE_APIKEY=your-key
876876npm run tsx ./src/examples/summarize.ts
877877```
878878
879+ ## Complete Examples Reference
880+
881+ Below is a comprehensive list of all available examples in [ ` src/examples/ ` ] ( https://github.com/ax-llm/ax/tree/main/src/examples ) , organized by category.
882+
883+ ### Basic Concepts
884+
885+ - ** [ chat.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/chat.ts ) ** - Simple chat interface demonstrating basic conversation flow
886+ - ** [ simple-classify.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/simple-classify.ts ) ** - Basic classification example
887+ - ** [ extract.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/extract.ts ) ** - Extract structured data from unstructured text
888+ - ** [ extract-test.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/extract-test.ts ) ** - Testing extraction capabilities
889+ - ** [ summarize.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/summarize.ts ) ** - Document summarization with key insights
890+ - ** [ marketing.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/marketing.ts ) ** - Marketing content generation
891+ - ** [ embed.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/embed.ts ) ** - Text embeddings and vector operations
892+
893+ ### Signatures & Type Safety
894+
895+ - ** [ fluent-signature-example.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/fluent-signature-example.ts ) ** - Using the fluent API for signature definition
896+ - ** [ signature-tool-calling.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/signature-tool-calling.ts ) ** - Combining signatures with tool calling
897+ - ** [ structured_output.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/structured_output.ts ) ** - Complex structured output with validation
898+ - ** [ debug_schema.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/debug_schema.ts ) ** - Debugging JSON schema generation
899+
900+ ### Function Calling & Tools
901+
902+ - ** [ function.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/function.ts ) ** - Basic function calling (ReAct pattern)
903+ - ** [ food-search.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/food-search.ts ) ** - Restaurant search with multi-step reasoning
904+ - ** [ smart-home.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/smart-home.ts ) ** - Smart home control with multiple devices
905+ - ** [ stop-function.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/stop-function.ts ) ** - Controlling function execution flow
906+ - ** [ function-result-formatter.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/function-result-formatter.ts ) ** - Formatting function call results
907+ - ** [ function-result-picker.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/function-result-picker.ts ) ** - Selecting best function results
908+ - ** [ result-picker.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/result-picker.ts ) ** - Advanced result selection strategies
909+
910+ ### Streaming
911+
912+ - ** [ streaming.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/streaming.ts ) ** - Basic streaming responses
913+ - ** [ streaming-asserts.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/streaming-asserts.ts ) ** - Streaming with real-time validation
914+
915+ ### Assertions & Validation
916+
917+ - ** [ asserts.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/asserts.ts ) ** - Using assertions for output validation
918+ - ** [ sample-count.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/sample-count.ts ) ** - Controlling sampling and retries
919+
920+ ### Agent Systems
921+
922+ - ** [ agent.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/agent.ts ) ** - Basic agent implementation
923+ - ** [ agent-migration-example.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/agent-migration-example.ts ) ** - Migrating to the agent pattern
924+ - ** [ customer-support.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/customer-support.ts ) ** - Complete customer support agent
925+ - ** [ meetings.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/meetings.ts ) ** - Meeting assistant with scheduling
926+
927+ ### Workflow Orchestration (AxFlow)
928+
929+ - ** [ ax-flow.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/ax-flow.ts ) ** - Comprehensive AxFlow demonstration
930+ - ** [ ax-flow-enhanced-demo.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/ax-flow-enhanced-demo.ts ) ** - Advanced flow patterns
931+ - ** [ ax-flow-async-map.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/ax-flow-async-map.ts ) ** - Parallel processing with map
932+ - ** [ ax-flow-auto-parallel.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/ax-flow-auto-parallel.ts ) ** - Automatic parallelization
933+ - ** [ ax-flow-map-merge-test.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/ax-flow-map-merge-test.ts ) ** - Map-reduce patterns
934+ - ** [ ax-flow-signature-inference.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/ax-flow-signature-inference.ts ) ** - Type inference in flows
935+ - ** [ ax-flow-to-function.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/ax-flow-to-function.ts ) ** - Converting flows to functions
936+ - ** [ fluent-flow-example.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/fluent-flow-example.ts ) ** - Fluent API for flows
937+ - ** [ flow-type-inference-demo.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/flow-type-inference-demo.ts ) ** - Type safety in flows
938+ - ** [ flow-type-safe-output.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/flow-type-safe-output.ts ) ** - Type-safe flow outputs
939+ - ** [ flow-logging-simple.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/flow-logging-simple.ts ) ** - Simple flow logging
940+ - ** [ flow-verbose-logging.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/flow-verbose-logging.ts ) ** - Detailed flow debugging
941+
942+ ### Optimization & Training
943+
944+ - ** [ teacher-student-optimization.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/teacher-student-optimization.ts ) ** - MiPRO teacher-student optimization
945+ - ** [ mipro-python-optimizer.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/mipro-python-optimizer.ts ) ** - MiPRO with Python backend
946+ - ** [ gepa.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/gepa.ts ) ** - GEPA optimizer basics
947+ - ** [ gepa-flow.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/gepa-flow.ts ) ** - GEPA with workflows
948+ - ** [ gepa-train-inference.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/gepa-train-inference.ts ) ** - GEPA training and inference
949+ - ** [ gepa-quality-vs-speed-optimization.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/gepa-quality-vs-speed-optimization.ts ) ** - Multi-objective optimization
950+ - ** [ ace-train-inference.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/ace-train-inference.ts ) ** - ACE optimizer demonstration
951+ - ** [ simple-optimizer-test.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/simple-optimizer-test.ts ) ** - Basic optimizer testing
952+ - ** [ optimizer-metrics.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/optimizer-metrics.ts ) ** - Optimization metrics tracking
953+ - ** [ use-examples.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/use-examples.ts ) ** - Using examples for few-shot learning
954+
955+ ### Multi-Modal & Vision
956+
957+ - ** [ multi-modal.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/multi-modal.ts ) ** - Basic multi-modal processing
958+ - ** [ multi-modal-abstraction.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/multi-modal-abstraction.ts ) ** - Advanced multi-modal patterns
959+ - ** [ image-arrays-test.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/image-arrays-test.ts ) ** - Processing multiple images
960+ - ** [ image-arrays-multi-provider-test.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/image-arrays-multi-provider-test.ts ) ** - Multi-provider image handling
961+ - ** [ audio-arrays-test.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/audio-arrays-test.ts ) ** - Audio processing
962+
963+ ### RAG & Document Processing
964+
965+ - ** [ rag-docs.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/rag-docs.ts ) ** - Basic RAG implementation
966+ - ** [ advanced-rag.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/advanced-rag.ts ) ** - Advanced RAG patterns
967+ - ** [ vectordb.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/vectordb.ts ) ** - Vector database integration
968+ - ** [ codingWithMemory.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/codingWithMemory.ts ) ** - Code generation with memory
969+
970+ ### Provider-Specific Examples
971+
972+ #### Anthropic (Claude)
973+ - ** [ anthropic-thinking-function.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/anthropic-thinking-function.ts ) ** - Extended thinking with function calls
974+ - ** [ anthropic-thinking-separation.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/anthropic-thinking-separation.ts ) ** - Separating thinking from output
975+ - ** [ anthropic-web-search.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/anthropic-web-search.ts ) ** - Web search with Claude
976+ - ** [ test-anthropic-cache.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/test-anthropic-cache.ts ) ** - Prompt caching with Anthropic
977+
978+ #### Google Gemini
979+ - ** [ gemini-file-support.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/gemini-file-support.ts ) ** - File uploads with Gemini
980+ - ** [ gemini-google-maps.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/gemini-google-maps.ts ) ** - Google Maps integration
981+ - ** [ gemini-empty-params-function.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/gemini-empty-params-function.ts ) ** - Functions without parameters
982+ - ** [ vertex-auth-example.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/vertex-auth-example.ts ) ** - Vertex AI authentication
983+
984+ #### OpenAI
985+ - ** [ openai-responses.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/openai-responses.ts ) ** - OpenAI response handling
986+ - ** [ openai-web-search.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/openai-web-search.ts ) ** - Web search with OpenAI
987+ - ** [ reasoning-o3-example.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/reasoning-o3-example.ts ) ** - O3 reasoning model
988+
989+ #### Other Providers
990+ - ** [ grok-live-search.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/grok-live-search.ts ) ** - Grok with live search
991+ - ** [ openrouter.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/openrouter.ts ) ** - OpenRouter integration
992+
993+ ### MCP (Model Context Protocol)
994+
995+ - ** [ mcp-client-memory.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/mcp-client-memory.ts ) ** - MCP memory server integration
996+ - ** [ mcp-client-blender.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/mcp-client-blender.ts ) ** - Blender MCP integration
997+ - ** [ mcp-client-pipedream.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/mcp-client-pipedream.ts ) ** - Pipedream MCP integration
998+ - ** [ mcp-client-notion-http-oauth.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/mcp-client-notion-http-oauth.ts ) ** - Notion MCP with HTTP OAuth
999+ - ** [ mcp-client-notion-sse-oauth.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/mcp-client-notion-sse-oauth.ts ) ** - Notion MCP with SSE OAuth
1000+
1001+ ### Advanced Patterns
1002+
1003+ - ** [ react.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/react.ts ) ** - ReAct (Reasoning + Acting) pattern
1004+ - ** [ prime.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/prime.ts ) ** - Prime number generation with reasoning
1005+ - ** [ fibonacci.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/fibonacci.ts ) ** - Fibonacci sequence generation
1006+ - ** [ show-thoughts.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/show-thoughts.ts ) ** - Displaying model reasoning
1007+ - ** [ checkpoint-recovery.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/checkpoint-recovery.ts ) ** - Checkpointing and recovery
1008+ - ** [ balancer.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/balancer.ts ) ** - Load balancing across models
1009+ - ** [ ax-multiservice-router.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/ax-multiservice-router.ts ) ** - Routing between multiple AI services
1010+
1011+ ### Monitoring & Debugging
1012+
1013+ - ** [ debug-logging.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/debug-logging.ts ) ** - Debug logging configuration
1014+ - ** [ telemetry.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/telemetry.ts ) ** - Telemetry and observability
1015+ - ** [ metrics-export.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/metrics-export.ts ) ** - Exporting metrics
1016+
1017+ ### Abort & Control Flow
1018+
1019+ - ** [ abort-simple.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/abort-simple.ts ) ** - Simple abort handling
1020+ - ** [ abort-patterns.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/abort-patterns.ts ) ** - Advanced abort patterns
1021+
1022+ ### Web & Browser
1023+
1024+ - ** [ web-chat.html] ( https://github.com/ax-llm/ax/tree/main/src/examples/web-chat.html ) ** - Browser-based chat interface
1025+ - ** [ webllm-chat.html] ( https://github.com/ax-llm/ax/tree/main/src/examples/webllm-chat.html ) ** - WebLLM browser integration
1026+ - ** [ cors-proxy.js] ( https://github.com/ax-llm/ax/tree/main/src/examples/cors-proxy.js ) ** - CORS proxy for browser usage
1027+
1028+ ### Deployment
1029+
1030+ - ** [ docker.ts] ( https://github.com/ax-llm/ax/tree/main/src/examples/docker.ts ) ** - Docker deployment example
1031+
8791032## Best Practices
8801033
88110341 . ** Start Simple** : Begin with basic signatures, add complexity as needed
0 commit comments