()
| 14 | } |
| 15 | |
| 16 | async function customConfigExamples() { |
| 17 | await runWithConfig( |
| 18 | "weighted confidence", |
| 19 | { |
| 20 | provider: "openai", |
| 21 | apiKey, |
| 22 | model: "gpt-4o", |
| 23 | simpleModel: "gpt-4o-mini", |
| 24 | weights: { logical: 0.6, rule: 0.3, empathy: 0.1 } |
| 25 | }, |
| 26 | "prove that the square root of 2 is irrational" |
| 27 | ); |
| 28 | |
| 29 | await runWithConfig( |
| 30 | "performance tuning", |
| 31 | { |
| 32 | provider: "openai", |
| 33 | apiKey, |
| 34 | model: "gpt-4o", |
| 35 | performance: { maxRetries: 5, timeout: 60000 } |
| 36 | }, |
| 37 | "outline a 5 step plan to land a spacecraft on mars" |
| 38 | ); |
| 39 | |
| 40 | await runWithConfig( |
| 41 | "persistent memory", |
| 42 | { |
| 43 | provider: "openai", |
| 44 | apiKey, |
| 45 | model: "gpt-4o", |
| 46 | memory: { enabled: true, path: "./data/custom-memory.db" } |
| 47 | }, |
| 48 | "summarize the benefits of distributed systems" |
| 49 | ); |
| 50 | |
| 51 | await runWithConfig( |
| 52 | "stateless run", |
| 53 | { |
| 54 | provider: "openai", |
| 55 | apiKey, |
| 56 | model: "gpt-4o", |
| 57 | memory: { enabled: false, path: "./data/unused.db" } |
| 58 | }, |
| 59 | "when should reflective reasoning be used" |
| 60 | ); |
| 61 | } |
| 62 | |
| 63 | customConfigExamples().catch(console.error); |
no test coverage detected