Framework-Agnostic Usage
The fundamental output of PromptSmith is a formatted string - your system prompt. This works with any framework that accepts text prompts:LangChain Integration
Use PromptSmith to generate system prompts for LangChain:LangChain with Tools
For tool usage with LangChain, define tools separately and reference them in your prompt:OpenAI SDK Integration
Use directly with OpenAI’s official SDK:OpenAI Function Calling
For function calling with the OpenAI SDK:Anthropic SDK Integration
Use with Anthropic’s Claude:Custom Framework Integration
For custom implementations or frameworks not listed here:Exporting Configuration
As JSON
Export your complete configuration:As Separate Components
Format Optimization
Optimize token usage with different formats:Best Practices
Use builder for prompt generation
Use builder for prompt generation
Let PromptSmith handle prompt structure while you focus on agent behavior:
Validate before using
Validate before using
Use built-in validation to catch issues:
Debug during development
Debug during development
Use debug mode to inspect your configuration:
Test with real LLMs
Test with real LLMs
Use the testing framework:
Framework-Specific Tips
For REST API Integrations
For Streaming Responses
Next Steps
Vercel AI SDK
Native integration with Vercel AI SDK
Mastra Integration
Full-featured agent framework integration