@babav/knowledge-core-client 0.8.0 → 0.9.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 +4 -0
- package/package.json +1 -1
- package/src/index.ts +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -169,6 +169,8 @@ export interface Feedback {
|
|
|
169
169
|
export interface Agent {
|
|
170
170
|
id: UUID;
|
|
171
171
|
name: string;
|
|
172
|
+
identity_prompt: string | null;
|
|
173
|
+
response_prompt: string | null;
|
|
172
174
|
generation_model: string | null;
|
|
173
175
|
top_k: number | null;
|
|
174
176
|
rerank_instruction: string | null;
|
|
@@ -461,6 +463,8 @@ export declare class AdminClient extends HttpBase {
|
|
|
461
463
|
agents: {
|
|
462
464
|
create: (b: {
|
|
463
465
|
name: string;
|
|
466
|
+
identity_prompt?: string;
|
|
467
|
+
response_prompt?: string;
|
|
464
468
|
generation_model?: string;
|
|
465
469
|
top_k?: number;
|
|
466
470
|
rerank_instruction?: string;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -183,6 +183,8 @@ export interface Feedback {
|
|
|
183
183
|
export interface Agent {
|
|
184
184
|
id: UUID;
|
|
185
185
|
name: string;
|
|
186
|
+
identity_prompt: string | null; // answer-system: who/purpose (null => server default)
|
|
187
|
+
response_prompt: string | null; // answer-system: output guidelines (null => server default)
|
|
186
188
|
generation_model: string | null;
|
|
187
189
|
top_k: number | null;
|
|
188
190
|
rerank_instruction: string | null;
|
|
@@ -601,7 +603,7 @@ export class AdminClient extends HttpBase {
|
|
|
601
603
|
|
|
602
604
|
// Agents are query agents, global for now.
|
|
603
605
|
agents = {
|
|
604
|
-
create: (b: { name: string; generation_model?: string; top_k?: number; rerank_instruction?: string; max_hops?: number; groundedness_threshold?: number; grounding_enabled?: boolean }) =>
|
|
606
|
+
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
607
|
this.request<Agent>("POST", "/v1/agents", { json: b }),
|
|
606
608
|
update: (id: UUID, b: Partial<Omit<Agent, "id">>) =>
|
|
607
609
|
this.request<Agent>("PATCH", `/v1/agents/${id}`, { json: b }),
|