@babav/knowledge-core-client 0.8.0 → 0.10.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/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/index.ts +7 -1
package/dist/index.d.ts
CHANGED
|
@@ -79,6 +79,9 @@ export interface Citation {
|
|
|
79
79
|
text_span: [number, number] | null;
|
|
80
80
|
context_index: number;
|
|
81
81
|
document_id: string;
|
|
82
|
+
filename: string | null;
|
|
83
|
+
visibility: Visibility | string;
|
|
84
|
+
custom_metadata: Record<string, unknown>;
|
|
82
85
|
source_url: string | null;
|
|
83
86
|
supported: boolean;
|
|
84
87
|
}
|
|
@@ -169,6 +172,8 @@ export interface Feedback {
|
|
|
169
172
|
export interface Agent {
|
|
170
173
|
id: UUID;
|
|
171
174
|
name: string;
|
|
175
|
+
identity_prompt: string | null;
|
|
176
|
+
response_prompt: string | null;
|
|
172
177
|
generation_model: string | null;
|
|
173
178
|
top_k: number | null;
|
|
174
179
|
rerank_instruction: string | null;
|
|
@@ -461,6 +466,8 @@ export declare class AdminClient extends HttpBase {
|
|
|
461
466
|
agents: {
|
|
462
467
|
create: (b: {
|
|
463
468
|
name: string;
|
|
469
|
+
identity_prompt?: string;
|
|
470
|
+
response_prompt?: string;
|
|
464
471
|
generation_model?: string;
|
|
465
472
|
top_k?: number;
|
|
466
473
|
rerank_instruction?: string;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -92,6 +92,10 @@ export interface Citation {
|
|
|
92
92
|
text_span: [number, number] | null;
|
|
93
93
|
context_index: number;
|
|
94
94
|
document_id: string;
|
|
95
|
+
// Source identity carried inline — no per-citation API round-trip to render it.
|
|
96
|
+
filename: string | null;
|
|
97
|
+
visibility: Visibility | string;
|
|
98
|
+
custom_metadata: Record<string, unknown>;
|
|
95
99
|
source_url: string | null;
|
|
96
100
|
supported: boolean;
|
|
97
101
|
}
|
|
@@ -183,6 +187,8 @@ export interface Feedback {
|
|
|
183
187
|
export interface Agent {
|
|
184
188
|
id: UUID;
|
|
185
189
|
name: string;
|
|
190
|
+
identity_prompt: string | null; // answer-system: who/purpose (null => server default)
|
|
191
|
+
response_prompt: string | null; // answer-system: output guidelines (null => server default)
|
|
186
192
|
generation_model: string | null;
|
|
187
193
|
top_k: number | null;
|
|
188
194
|
rerank_instruction: string | null;
|
|
@@ -601,7 +607,7 @@ export class AdminClient extends HttpBase {
|
|
|
601
607
|
|
|
602
608
|
// Agents are query agents, global for now.
|
|
603
609
|
agents = {
|
|
604
|
-
create: (b: { name: string; generation_model?: string; top_k?: number; rerank_instruction?: string; max_hops?: number; groundedness_threshold?: number; grounding_enabled?: boolean }) =>
|
|
610
|
+
create: (b: { name: string; identity_prompt?: string; response_prompt?: string; generation_model?: string; top_k?: number; rerank_instruction?: string; max_hops?: number; groundedness_threshold?: number; grounding_enabled?: boolean }) =>
|
|
605
611
|
this.request<Agent>("POST", "/v1/agents", { json: b }),
|
|
606
612
|
update: (id: UUID, b: Partial<Omit<Agent, "id">>) =>
|
|
607
613
|
this.request<Agent>("PATCH", `/v1/agents/${id}`, { json: b }),
|