@jambonz/llm 0.6.8 → 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 +57 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +57 -2
- package/dist/index.js.map +1 -1
- package/dist/test-kit/index.cjs +56 -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 +56 -1
- package/dist/test-kit/index.js.map +1 -1
- package/dist/{types-4l2etrW-.d.cts → types-C_yrWq_0.d.cts} +12 -1
- package/dist/{types-4l2etrW-.d.ts → types-C_yrWq_0.d.ts} +12 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as ServiceAccountJson, A as AuthSpec, a as AuthKindSchema, P as PromptRequest, b as AdapterFactory, c as AdapterManifest, C as CreateLlmArgs, L as LlmAdapter } from './types-
|
|
2
|
-
export { d as ApiKeyAuth, e as AuthKind, f as AzureOpenAIApiKeyAuth, B as BedrockApiKeyAuth, g as BedrockIamAuth, h as ClientOptions, i as ContentBlock, F as FinishReason, j as FormField, k as FormFieldType, G as GoogleApiKeyAuth, l as GoogleServiceAccountAuth, J as JsonSchema, m as LlmEvent, M as Message, n as ModelCapabilities, o as ModelInfo, R as Role, T as Tool, p as ToolCallEvent, U as Usage, V as VertexServiceAccountAuth } from './types-
|
|
1
|
+
import { S as ServiceAccountJson, A as AuthSpec, a as AuthKindSchema, P as PromptRequest, b as AdapterFactory, c as AdapterManifest, C as CreateLlmArgs, L as LlmAdapter } from './types-C_yrWq_0.cjs';
|
|
2
|
+
export { d as ApiKeyAuth, e as AuthKind, f as AzureOpenAIApiKeyAuth, B as BedrockApiKeyAuth, g as BedrockIamAuth, h as ClientOptions, i as ContentBlock, F as FinishReason, j as FormField, k as FormFieldType, G as GoogleApiKeyAuth, l as GoogleServiceAccountAuth, J as JsonSchema, m as LlmEvent, M as Message, n as ModelCapabilities, o as ModelInfo, R as Role, T as Tool, p as ToolCallEvent, U as Usage, V as VendorCategory, q as VertexServiceAccountAuth } from './types-C_yrWq_0.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The loose "DB-shape" input accepted by `normalizeAuth`.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as ServiceAccountJson, A as AuthSpec, a as AuthKindSchema, P as PromptRequest, b as AdapterFactory, c as AdapterManifest, C as CreateLlmArgs, L as LlmAdapter } from './types-
|
|
2
|
-
export { d as ApiKeyAuth, e as AuthKind, f as AzureOpenAIApiKeyAuth, B as BedrockApiKeyAuth, g as BedrockIamAuth, h as ClientOptions, i as ContentBlock, F as FinishReason, j as FormField, k as FormFieldType, G as GoogleApiKeyAuth, l as GoogleServiceAccountAuth, J as JsonSchema, m as LlmEvent, M as Message, n as ModelCapabilities, o as ModelInfo, R as Role, T as Tool, p as ToolCallEvent, U as Usage, V as VertexServiceAccountAuth } from './types-
|
|
1
|
+
import { S as ServiceAccountJson, A as AuthSpec, a as AuthKindSchema, P as PromptRequest, b as AdapterFactory, c as AdapterManifest, C as CreateLlmArgs, L as LlmAdapter } from './types-C_yrWq_0.js';
|
|
2
|
+
export { d as ApiKeyAuth, e as AuthKind, f as AzureOpenAIApiKeyAuth, B as BedrockApiKeyAuth, g as BedrockIamAuth, h as ClientOptions, i as ContentBlock, F as FinishReason, j as FormField, k as FormFieldType, G as GoogleApiKeyAuth, l as GoogleServiceAccountAuth, J as JsonSchema, m as LlmEvent, M as Message, n as ModelCapabilities, o as ModelInfo, R as Role, T as Tool, p as ToolCallEvent, U as Usage, V as VendorCategory, q as VertexServiceAccountAuth } from './types-C_yrWq_0.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The loose "DB-shape" input accepted by `normalizeAuth`.
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ function getManifest() {
|
|
|
59
59
|
const vendors = [
|
|
60
60
|
...Array.from(registry.values()).map((f) => f.manifest),
|
|
61
61
|
...credentialVendors.values()
|
|
62
|
-
].sort((a, b) => a.vendor.localeCompare(b.vendor));
|
|
62
|
+
].map((m) => ({ ...m, category: m.category ?? "llm" })).sort((a, b) => a.vendor.localeCompare(b.vendor));
|
|
63
63
|
return { vendors };
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -3781,7 +3781,60 @@ var harnessManifest = {
|
|
|
3781
3781
|
],
|
|
3782
3782
|
knownModels: [],
|
|
3783
3783
|
supportsModelListing: false,
|
|
3784
|
-
credentialOnly: true
|
|
3784
|
+
credentialOnly: true,
|
|
3785
|
+
category: "llm"
|
|
3786
|
+
};
|
|
3787
|
+
|
|
3788
|
+
// src/vendors/dialogflow-ces.ts
|
|
3789
|
+
var dialogflowCesManifest = {
|
|
3790
|
+
vendor: "dialogflow_ces",
|
|
3791
|
+
displayName: "Dialogflow CES",
|
|
3792
|
+
authKinds: [
|
|
3793
|
+
{
|
|
3794
|
+
kind: "googleServiceAccount",
|
|
3795
|
+
displayName: "Service Account JSON",
|
|
3796
|
+
fields: [
|
|
3797
|
+
{
|
|
3798
|
+
name: "credentials",
|
|
3799
|
+
label: "Service Account Key (JSON)",
|
|
3800
|
+
type: "json-file",
|
|
3801
|
+
required: true,
|
|
3802
|
+
help: "The key of a service account allowed to run your CES agents (Customer Engagement Suite)."
|
|
3803
|
+
}
|
|
3804
|
+
]
|
|
3805
|
+
}
|
|
3806
|
+
],
|
|
3807
|
+
knownModels: [],
|
|
3808
|
+
supportsModelListing: false,
|
|
3809
|
+
docsUrl: "https://cloud.google.com/customer-engagement-ai/conversational-agents/ps",
|
|
3810
|
+
credentialOnly: true,
|
|
3811
|
+
category: "hosted"
|
|
3812
|
+
};
|
|
3813
|
+
|
|
3814
|
+
// src/vendors/openai-s2s.ts
|
|
3815
|
+
var openaiS2sManifest = {
|
|
3816
|
+
vendor: "openai_s2s",
|
|
3817
|
+
displayName: "OpenAI Realtime",
|
|
3818
|
+
authKinds: [
|
|
3819
|
+
{
|
|
3820
|
+
kind: "apiKey",
|
|
3821
|
+
displayName: "API Key",
|
|
3822
|
+
fields: [
|
|
3823
|
+
{
|
|
3824
|
+
name: "apiKey",
|
|
3825
|
+
label: "API Key",
|
|
3826
|
+
type: "password",
|
|
3827
|
+
required: true,
|
|
3828
|
+
help: "An OpenAI API key with access to the Realtime API."
|
|
3829
|
+
}
|
|
3830
|
+
]
|
|
3831
|
+
}
|
|
3832
|
+
],
|
|
3833
|
+
knownModels: [],
|
|
3834
|
+
supportsModelListing: false,
|
|
3835
|
+
docsUrl: "https://platform.openai.com/docs/guides/realtime",
|
|
3836
|
+
credentialOnly: true,
|
|
3837
|
+
category: "s2s"
|
|
3785
3838
|
};
|
|
3786
3839
|
|
|
3787
3840
|
// src/adapters/index.ts
|
|
@@ -3802,6 +3855,8 @@ registerAdapter(groqFactory);
|
|
|
3802
3855
|
registerAdapter(huggingfaceFactory);
|
|
3803
3856
|
registerAdapter(openRouterFactory);
|
|
3804
3857
|
registerCredentialVendor(harnessManifest);
|
|
3858
|
+
registerCredentialVendor(openaiS2sManifest);
|
|
3859
|
+
registerCredentialVendor(dialogflowCesManifest);
|
|
3805
3860
|
|
|
3806
3861
|
// src/normalize-auth.ts
|
|
3807
3862
|
function normalizeAuth(vendor, raw) {
|