SenseConfig
Defined in: src/runtime/runtime.ts:11
Options for configure and createSense. Every field is optional.
Properties
Section titled “Properties”| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
apiKey? |
readonly |
string |
API key; falls back to TYPESAFE_API_KEY. Ignored when client is given. |
src/runtime/runtime.ts:13 |
model? |
readonly |
string |
Model name; falls back to the SDK default (jev-latest). |
src/runtime/runtime.ts:15 |
client? |
readonly |
Transport |
Bring your own transport (a TypeSafeClient, or a fake in tests). | src/runtime/runtime.ts:17 |
policy? |
readonly |
PartialPolicy |
Acceptance thresholds. These are yours to tune. | src/runtime/runtime.ts:19 |
concurrency? |
readonly |
number |
Maximum in-flight requests. Default 8. | src/runtime/runtime.ts:21 |
questionsPerRequest? |
readonly |
number |
Questions packed into one request before splitting. Default 32. | src/runtime/runtime.ts:23 |
cache? |
readonly |
Cache |
Optional response cache. | src/runtime/runtime.ts:25 |