@just-every/ensemble 0.2.47 → 0.2.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +55 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -149,6 +149,61 @@ Key configuration options:
149
149
  - **Result Summarization** - Long outputs are intelligently summarized
150
150
  - **Abort Signals** - Graceful cancellation support
151
151
 
152
+ ## Development
153
+
154
+ ```bash
155
+ # Install dependencies
156
+ npm install
157
+
158
+ # Run tests
159
+ npm test
160
+
161
+ # Build
162
+ npm run build
163
+
164
+ # Generate docs
165
+ npm run docs
166
+
167
+ # Lint
168
+ npm run lint
169
+ ```
170
+
171
+ ## Architecture
172
+
173
+ Ensemble provides a unified interface across multiple LLM providers:
174
+
175
+ 1. **Provider Abstraction** - All providers extend `BaseModelProvider`
176
+ 2. **Event Streaming** - Consistent events across all providers
177
+ 3. **Tool System** - Automatic parameter mapping and execution
178
+ 4. **Message History** - Intelligent conversation management
179
+ 5. **Cost Tracking** - Built-in usage monitoring
180
+
181
+ ## Contributing
182
+
183
+ Contributions are welcome! Please:
184
+
185
+ 1. Fork the repository
186
+ 2. Create a feature branch
187
+ 3. Add tests for new features
188
+ 4. Submit a pull request
189
+
190
+ ## Troubleshooting
191
+
192
+ ### Provider Issues
193
+ - Ensure API keys are set correctly
194
+ - Check rate limits for your provider
195
+ - Verify model names match provider expectations
196
+
197
+ ### Tool Calling
198
+ - Tools must follow the OpenAI function schema
199
+ - Ensure tool functions are async
200
+ - Check timeout settings for long-running tools
201
+
202
+ ### Streaming Issues
203
+ - Verify network connectivity
204
+ - Check for provider-specific errors in events
205
+ - Enable debug logging with `DEBUG=ensemble:*`
206
+
152
207
  ## License
153
208
 
154
209
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@just-every/ensemble",
3
- "version": "0.2.47",
3
+ "version": "0.2.48",
4
4
  "description": "LLM provider abstraction layer with unified streaming interface",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",