@jambonz/llm 0.6.7 → 0.6.9
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.
- package/dist/index.cjs +120 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -6
- package/dist/index.d.ts +15 -6
- package/dist/index.js +119 -4
- package/dist/index.js.map +1 -1
- package/dist/test-kit/index.cjs +106 -1
- package/dist/test-kit/index.cjs.map +1 -1
- package/dist/test-kit/index.d.cts +1 -1
- package/dist/test-kit/index.d.ts +1 -1
- package/dist/test-kit/index.js +106 -1
- package/dist/test-kit/index.js.map +1 -1
- package/dist/{types-dbgrfviJ.d.cts → types-C_yrWq_0.d.cts} +19 -1
- package/dist/{types-dbgrfviJ.d.ts → types-C_yrWq_0.d.ts} +19 -1
- package/package.json +1 -1
|
@@ -291,7 +291,25 @@ interface AdapterManifest {
|
|
|
291
291
|
supportsModelListing: boolean;
|
|
292
292
|
/** Optional documentation link for this vendor. */
|
|
293
293
|
docsUrl?: string;
|
|
294
|
+
/**
|
|
295
|
+
* True for a vendor jambonz stores a credential for but that has no adapter
|
|
296
|
+
* in this library: `createLlm` and `getAdapterFactory` refuse it, it has no
|
|
297
|
+
* models and nothing may list them. The harness vendor is one: feature-server
|
|
298
|
+
* talks to the customer's harness over its own WebSocket protocol.
|
|
299
|
+
*/
|
|
300
|
+
credentialOnly?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* What a credential for this vendor is used for, which decides where the
|
|
303
|
+
* portal lists it. Absent means `llm`; `getManifest()` fills it in.
|
|
304
|
+
*/
|
|
305
|
+
category?: VendorCategory;
|
|
294
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* - `llm`: a language model behind the agent verb (and the harness, which takes its place).
|
|
309
|
+
* - `s2s`: a speech-to-speech model for the llm verb. Ids are the schema's verb names (`openai_s2s`).
|
|
310
|
+
* - `hosted`: an agent defined and run at the vendor, e.g. Dialogflow CES for the dialogflow verb.
|
|
311
|
+
*/
|
|
312
|
+
type VendorCategory = 'llm' | 's2s' | 'hosted';
|
|
295
313
|
interface AuthKindSchema {
|
|
296
314
|
kind: AuthKind;
|
|
297
315
|
displayName: string;
|
|
@@ -428,4 +446,4 @@ interface CreateLlmArgs<A extends AuthSpec = AuthSpec> {
|
|
|
428
446
|
client?: ClientOptions;
|
|
429
447
|
}
|
|
430
448
|
|
|
431
|
-
export type { AuthSpec as A, BedrockApiKeyAuth as B, CreateLlmArgs as C, FinishReason as F, GoogleApiKeyAuth as G, JsonSchema as J, LlmAdapter as L, Message as M, PromptRequest as P, Role as R, ServiceAccountJson as S, Tool as T, Usage as U,
|
|
449
|
+
export type { AuthSpec as A, BedrockApiKeyAuth as B, CreateLlmArgs as C, FinishReason as F, GoogleApiKeyAuth as G, JsonSchema as J, LlmAdapter as L, Message as M, PromptRequest as P, Role as R, ServiceAccountJson as S, Tool as T, Usage as U, VendorCategory as V, AuthKindSchema as a, AdapterFactory as b, AdapterManifest as c, ApiKeyAuth as d, AuthKind as e, AzureOpenAIApiKeyAuth as f, BedrockIamAuth as g, ClientOptions as h, ContentBlock as i, FormField as j, FormFieldType as k, GoogleServiceAccountAuth as l, LlmEvent as m, ModelCapabilities as n, ModelInfo as o, ToolCallEvent as p, VertexServiceAccountAuth as q };
|
|
@@ -291,7 +291,25 @@ interface AdapterManifest {
|
|
|
291
291
|
supportsModelListing: boolean;
|
|
292
292
|
/** Optional documentation link for this vendor. */
|
|
293
293
|
docsUrl?: string;
|
|
294
|
+
/**
|
|
295
|
+
* True for a vendor jambonz stores a credential for but that has no adapter
|
|
296
|
+
* in this library: `createLlm` and `getAdapterFactory` refuse it, it has no
|
|
297
|
+
* models and nothing may list them. The harness vendor is one: feature-server
|
|
298
|
+
* talks to the customer's harness over its own WebSocket protocol.
|
|
299
|
+
*/
|
|
300
|
+
credentialOnly?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* What a credential for this vendor is used for, which decides where the
|
|
303
|
+
* portal lists it. Absent means `llm`; `getManifest()` fills it in.
|
|
304
|
+
*/
|
|
305
|
+
category?: VendorCategory;
|
|
294
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* - `llm`: a language model behind the agent verb (and the harness, which takes its place).
|
|
309
|
+
* - `s2s`: a speech-to-speech model for the llm verb. Ids are the schema's verb names (`openai_s2s`).
|
|
310
|
+
* - `hosted`: an agent defined and run at the vendor, e.g. Dialogflow CES for the dialogflow verb.
|
|
311
|
+
*/
|
|
312
|
+
type VendorCategory = 'llm' | 's2s' | 'hosted';
|
|
295
313
|
interface AuthKindSchema {
|
|
296
314
|
kind: AuthKind;
|
|
297
315
|
displayName: string;
|
|
@@ -428,4 +446,4 @@ interface CreateLlmArgs<A extends AuthSpec = AuthSpec> {
|
|
|
428
446
|
client?: ClientOptions;
|
|
429
447
|
}
|
|
430
448
|
|
|
431
|
-
export type { AuthSpec as A, BedrockApiKeyAuth as B, CreateLlmArgs as C, FinishReason as F, GoogleApiKeyAuth as G, JsonSchema as J, LlmAdapter as L, Message as M, PromptRequest as P, Role as R, ServiceAccountJson as S, Tool as T, Usage as U,
|
|
449
|
+
export type { AuthSpec as A, BedrockApiKeyAuth as B, CreateLlmArgs as C, FinishReason as F, GoogleApiKeyAuth as G, JsonSchema as J, LlmAdapter as L, Message as M, PromptRequest as P, Role as R, ServiceAccountJson as S, Tool as T, Usage as U, VendorCategory as V, AuthKindSchema as a, AdapterFactory as b, AdapterManifest as c, ApiKeyAuth as d, AuthKind as e, AzureOpenAIApiKeyAuth as f, BedrockIamAuth as g, ClientOptions as h, ContentBlock as i, FormField as j, FormFieldType as k, GoogleServiceAccountAuth as l, LlmEvent as m, ModelCapabilities as n, ModelInfo as o, ToolCallEvent as p, VertexServiceAccountAuth as q };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jambonz/llm",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"description": "Voice-oriented LLM adapter library — a uniform interface for streaming chat completions from multiple LLM vendors, with first-class support for tool calls, AbortSignal interruption, and lossless history round-tripping.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|