@nuvin/nuvin-core 1.19.0 → 2.0.0-rc.0
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/VERSION +2 -2
- package/dist/index.d.ts +7 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/VERSION
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ type AgentTemplate = {
|
|
|
23
23
|
metadata?: Record<string, unknown>;
|
|
24
24
|
location?: 'built-in' | 'global' | 'profile' | 'local';
|
|
25
25
|
};
|
|
26
|
-
type CompleteAgent = Required<Pick<AgentTemplate, 'instructions' | 'name' | 'description' | 'allowed_tools'
|
|
26
|
+
type CompleteAgent = Required<Pick<AgentTemplate, 'instructions' | 'name' | 'description' | 'allowed_tools'>> & Pick<AgentTemplate, 'model' | 'disable_model_invocation' | 'user_invocable' | 'context' | 'agent' | 'provider' | 'temperature' | 'top_p' | 'max_tokens' | 'timeout_ms' | 'share_context' | 'metadata'> & {
|
|
27
27
|
location?: 'built-in' | 'global' | 'profile' | 'local';
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -540,8 +540,8 @@ type ChatMessage = {
|
|
|
540
540
|
type CompletionParams = {
|
|
541
541
|
messages: ChatMessage[];
|
|
542
542
|
model: string;
|
|
543
|
-
temperature
|
|
544
|
-
topP
|
|
543
|
+
temperature?: number;
|
|
544
|
+
topP?: number;
|
|
545
545
|
maxTokens?: number;
|
|
546
546
|
tools?: Array<{
|
|
547
547
|
type: 'function';
|
|
@@ -628,6 +628,7 @@ type SendMessageOptions = {
|
|
|
628
628
|
conversationId?: string;
|
|
629
629
|
stream?: boolean;
|
|
630
630
|
signal?: AbortSignal;
|
|
631
|
+
skipAutoSummaryCheck?: boolean;
|
|
631
632
|
};
|
|
632
633
|
type UserAttachment = ImageContentPart & {
|
|
633
634
|
token?: string;
|
|
@@ -915,9 +916,9 @@ interface MetricsPort {
|
|
|
915
916
|
type AgentConfig = {
|
|
916
917
|
id: string;
|
|
917
918
|
systemPrompt: string;
|
|
918
|
-
topP
|
|
919
|
+
topP?: number;
|
|
919
920
|
model: string;
|
|
920
|
-
temperature
|
|
921
|
+
temperature?: number;
|
|
921
922
|
maxTokens?: number;
|
|
922
923
|
enabledTools?: string[];
|
|
923
924
|
maxToolConcurrency?: number;
|
|
@@ -3046,7 +3047,7 @@ interface LLMOptions {
|
|
|
3046
3047
|
retry?: Partial<RetryConfig>;
|
|
3047
3048
|
}
|
|
3048
3049
|
interface CustomProviderDefinition {
|
|
3049
|
-
type?: 'openai-compat' | 'anthropic-compat';
|
|
3050
|
+
type?: 'openai-compat' | 'anthropic-compat' | 'openai-response-compat';
|
|
3050
3051
|
baseUrl?: string;
|
|
3051
3052
|
models?: ModelConfig;
|
|
3052
3053
|
customHeaders?: Record<string, string>;
|