@agentica/rpc 0.8.3 → 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/lib/AgenticaRpcService.d.ts +7 -6
- package/lib/AgenticaRpcService.js.map +1 -1
- package/lib/IAgenticaRpcListener.d.ts +9 -8
- package/lib/IAgenticaRpcService.d.ts +3 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/AgenticaRpcService.ts +15 -8
- package/src/IAgenticaRpcListener.ts +9 -8
- package/src/IAgenticaRpcService.ts +3 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Agentica, IAgenticaController } from "@agentica/core";
|
|
2
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
2
3
|
import { Primitive } from "typia";
|
|
3
4
|
import { IAgenticaRpcListener } from "./IAgenticaRpcListener";
|
|
4
5
|
import { IAgenticaRpcService } from "./IAgenticaRpcService";
|
|
@@ -45,14 +46,14 @@ import { IAgenticaRpcService } from "./IAgenticaRpcService";
|
|
|
45
46
|
*
|
|
46
47
|
* @author Samchon
|
|
47
48
|
*/
|
|
48
|
-
export declare class AgenticaRpcService implements IAgenticaRpcService {
|
|
49
|
+
export declare class AgenticaRpcService<Model extends ILlmSchema.Model> implements IAgenticaRpcService<Model> {
|
|
49
50
|
private readonly props;
|
|
50
51
|
/**
|
|
51
52
|
* Initializer Constructor.
|
|
52
53
|
*
|
|
53
54
|
* @param props Properties to construct the RPC service
|
|
54
55
|
*/
|
|
55
|
-
constructor(props: AgenticaRpcService.IProps);
|
|
56
|
+
constructor(props: AgenticaRpcService.IProps<Model>);
|
|
56
57
|
/**
|
|
57
58
|
* @inheritDoc
|
|
58
59
|
*/
|
|
@@ -60,20 +61,20 @@ export declare class AgenticaRpcService implements IAgenticaRpcService {
|
|
|
60
61
|
/**
|
|
61
62
|
* @inheritDoc
|
|
62
63
|
*/
|
|
63
|
-
getControllers(): Promise<Primitive<IAgenticaController
|
|
64
|
+
getControllers(): Promise<Primitive<IAgenticaController<Model>>[]>;
|
|
64
65
|
}
|
|
65
66
|
export declare namespace AgenticaRpcService {
|
|
66
67
|
/**
|
|
67
68
|
* Properties of the {@link AgenticaRpcService}.
|
|
68
69
|
*/
|
|
69
|
-
interface IProps {
|
|
70
|
+
interface IProps<Model extends ILlmSchema.Model> {
|
|
70
71
|
/**
|
|
71
72
|
* Target agent to provide as RPC service.
|
|
72
73
|
*/
|
|
73
|
-
agent: Agentica
|
|
74
|
+
agent: Agentica<Model>;
|
|
74
75
|
/**
|
|
75
76
|
* Listener to be binded on the agent.
|
|
76
77
|
*/
|
|
77
|
-
listener: IAgenticaRpcListener
|
|
78
|
+
listener: IAgenticaRpcListener<Model>;
|
|
78
79
|
}
|
|
79
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgenticaRpcService.js","sourceRoot":"","sources":["../src/AgenticaRpcService.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AgenticaRpcService.js","sourceRoot":"","sources":["../src/AgenticaRpcService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,kBAAkB;IAG7B;;;;OAIG;IACH,YAAoC,KAAuC;QAAvC,UAAK,GAAL,KAAK,CAAkC;QACzE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;QAElC,sBAAsB;QACtB,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACzD,KAAK,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAEjE,qBAAqB;QACrB,KAAK,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAW,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACtE,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9D,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9D,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAO,GAAG,EAAE,EAAE;YAC7B,MAAM,IAAI,GAA8B,MAAM,QAAQ,CAAC,IAAK,CAC1D,SAAS,CAAC,GAAG,CAAC,CACf,CAAC;YACF,IAAI,CAAC,CAAC,IAAI;gBAAE,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC;QACnC,CAAC,CAAA,CAAC,CAAC;QACH,KAAK,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAQ,CAAC,SAAS,CAAC,GAAU,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACU,UAAU,CAAC,OAAe;;YACrC,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAC7C,CAAC;KAAA;IAED;;OAEG;IACU,cAAc;;YAGzB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAEM,CAAC;QAC/C,CAAC;KAAA;CACF;AA7CD,gDA6CC;AAkBD;;GAEG;AACH,MAAM,SAAS,GAAG,CAAI,GAAM,EAAgB,EAAE,CAC5C,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAiB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IAgenticaEvent } from "@agentica/core";
|
|
2
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
2
3
|
import { Primitive } from "typia";
|
|
3
4
|
/**
|
|
4
5
|
* RPC interface of AI agent listener.
|
|
@@ -42,7 +43,7 @@ import { Primitive } from "typia";
|
|
|
42
43
|
*
|
|
43
44
|
* @author Samchon
|
|
44
45
|
*/
|
|
45
|
-
export interface IAgenticaRpcListener {
|
|
46
|
+
export interface IAgenticaRpcListener<Model extends ILlmSchema.Model> {
|
|
46
47
|
/**
|
|
47
48
|
* Describe the function executions' results.
|
|
48
49
|
*
|
|
@@ -51,13 +52,13 @@ export interface IAgenticaRpcListener {
|
|
|
51
52
|
*
|
|
52
53
|
* @param evt Event of a description of function execution results
|
|
53
54
|
*/
|
|
54
|
-
describe(evt: Primitive<IAgenticaEvent.IDescribe
|
|
55
|
+
describe(evt: Primitive<IAgenticaEvent.IDescribe<Model>>): Promise<void>;
|
|
55
56
|
/**
|
|
56
57
|
* Text conversation message.
|
|
57
58
|
*
|
|
58
59
|
* @param evt Event of a text conversation message
|
|
59
60
|
*/
|
|
60
|
-
text(evt:
|
|
61
|
+
text(evt: IAgenticaEvent.IText): Promise<void>;
|
|
61
62
|
/**
|
|
62
63
|
* Initialize the AI agent.
|
|
63
64
|
*
|
|
@@ -66,7 +67,7 @@ export interface IAgenticaRpcListener {
|
|
|
66
67
|
*
|
|
67
68
|
* @param evt Event of initialization
|
|
68
69
|
*/
|
|
69
|
-
initialize?(evt:
|
|
70
|
+
initialize?(evt: IAgenticaEvent.IInitialize): Promise<void>;
|
|
70
71
|
/**
|
|
71
72
|
* Select a function to call.
|
|
72
73
|
*
|
|
@@ -74,7 +75,7 @@ export interface IAgenticaRpcListener {
|
|
|
74
75
|
*
|
|
75
76
|
* @param evt Event of selecting a function to call
|
|
76
77
|
*/
|
|
77
|
-
select?(evt: Primitive<IAgenticaEvent.ISelect
|
|
78
|
+
select?(evt: Primitive<IAgenticaEvent.ISelect<Model>>): Promise<void>;
|
|
78
79
|
/**
|
|
79
80
|
* Cancel a function to call.
|
|
80
81
|
*
|
|
@@ -82,7 +83,7 @@ export interface IAgenticaRpcListener {
|
|
|
82
83
|
*
|
|
83
84
|
* @param evt Event of canceling a function to call
|
|
84
85
|
*/
|
|
85
|
-
cancel?(evt: Primitive<IAgenticaEvent.ICancel
|
|
86
|
+
cancel?(evt: Primitive<IAgenticaEvent.ICancel<Model>>): Promise<void>;
|
|
86
87
|
/**
|
|
87
88
|
* Call a function.
|
|
88
89
|
*
|
|
@@ -100,7 +101,7 @@ export interface IAgenticaRpcListener {
|
|
|
100
101
|
* @param evt Event of a function calling
|
|
101
102
|
* @return New arguments if you want to modify, otherwise null or undefined
|
|
102
103
|
*/
|
|
103
|
-
call?(evt: Primitive<IAgenticaEvent.ICall
|
|
104
|
+
call?(evt: Primitive<IAgenticaEvent.ICall<Model>>): Promise<object | null | undefined>;
|
|
104
105
|
/**
|
|
105
106
|
* Executition of a function.
|
|
106
107
|
*
|
|
@@ -108,5 +109,5 @@ export interface IAgenticaRpcListener {
|
|
|
108
109
|
*
|
|
109
110
|
* @param evt Event of a function execution
|
|
110
111
|
*/
|
|
111
|
-
execute?(evt:
|
|
112
|
+
execute?(evt: IAgenticaEvent.IExecute<Model>): Promise<void>;
|
|
112
113
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IAgenticaController } from "@agentica/core";
|
|
2
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
2
3
|
import { Primitive } from "typia";
|
|
3
4
|
/**
|
|
4
5
|
* RPC interface of AI agent service.
|
|
@@ -13,7 +14,7 @@ import { Primitive } from "typia";
|
|
|
13
14
|
*
|
|
14
15
|
* @author Samchon
|
|
15
16
|
*/
|
|
16
|
-
export interface IAgenticaRpcService {
|
|
17
|
+
export interface IAgenticaRpcService<Model extends ILlmSchema.Model> {
|
|
17
18
|
/**
|
|
18
19
|
* Conversate with the AI agent.
|
|
19
20
|
*
|
|
@@ -34,5 +35,5 @@ export interface IAgenticaRpcService {
|
|
|
34
35
|
* Get controllers, collection of functions that would be
|
|
35
36
|
* called by the AI chatbot.
|
|
36
37
|
*/
|
|
37
|
-
getControllers(): Promise<Primitive<IAgenticaController[]>>;
|
|
38
|
+
getControllers(): Promise<Primitive<IAgenticaController<Model>[]>>;
|
|
38
39
|
}
|
package/lib/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/AgenticaRpcService.ts"],"sourcesContent":[null],"names":["AgenticaRpcService","constructor","props","this","agent","listener","on","evt","text","primitive","describe","initialize","select","cancel","async","args","call","arguments","execute","conversate","content","getControllers","obj","JSON","parse","stringify"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/AgenticaRpcService.ts"],"sourcesContent":[null],"names":["AgenticaRpcService","constructor","props","this","agent","listener","on","evt","text","primitive","describe","initialize","select","cancel","async","args","call","arguments","execute","conversate","content","getControllers","obj","JSON","parse","stringify"],"mappings":"MAkDaA;IAQX,WAAAC,CAAoCC;QAAAC,KAAKD,QAALA;QAClC,OAAME,OAAOC,YAAeH;QAG5BE,MAAME,GAAG,SAASC,OAAQF,SAASG,KAAKC,UAAUF;QAClDH,MAAME,GAAG,aAAaC,OAAQF,SAASK,SAASD,UAAUF;QAG1DH,MAAME,GAAG,eAAeC,OAAQF,SAASM,WAAYF,UAAUF;QAC/DH,MAAME,GAAG,WAAWC,OAAQF,SAASO,OAAQH,UAAUF;QACvDH,MAAME,GAAG,WAAWC,OAAQF,SAASQ,OAAQJ,UAAUF;QACvDH,MAAME,GAAG,SAAQQ,MAAOP;YACtB,MAAMQ,aAAwCV,SAASW,KACrDP,UAAUF;YAEZ,MAAMQ,MAAMR,IAAIU,YAAYF;AAAI;QAElCX,MAAME,GAAG,YAAYC,OAAQF,SAASa,QAAST,UAAUF;;IAMpD,gBAAMY,CAAWC;cAChBjB,KAAKD,MAAME,MAAMe,WAAWC;;IAM7B,oBAAMC;QAGX,OAAOlB,KAAKD,MAAME,MAAMiB;;;;AAyB5B,MAAMZ,YAAgBa,OACpBC,KAAKC,MAAMD,KAAKE,UAAUH;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentica/rpc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"description": "Agentic AI Library specialized in LLM Function Calling",
|
|
6
6
|
"scripts": {
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"src"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@agentica/core": "^0.
|
|
41
|
-
"@samchon/openapi": "^
|
|
40
|
+
"@agentica/core": "^0.9.0",
|
|
41
|
+
"@samchon/openapi": "^3.0.0",
|
|
42
42
|
"@samchon/shopping-api": "^0.15.0",
|
|
43
43
|
"chalk": "4.1.2",
|
|
44
44
|
"openai": "^4.80.0",
|
|
45
45
|
"tstl": "^3.0.0",
|
|
46
|
-
"typia": "^
|
|
46
|
+
"typia": "^8.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@rollup/plugin-terser": "^0.4.4",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"rollup": "^4.34.8",
|
|
54
54
|
"ts-patch": "^3.3.0",
|
|
55
55
|
"typedoc": "^0.27.7",
|
|
56
|
-
"typescript": "~5.
|
|
56
|
+
"typescript": "~5.8.2"
|
|
57
57
|
},
|
|
58
58
|
"module": "lib/index.mjs",
|
|
59
59
|
"typings": "lib/index.d.ts"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Agentica, IAgenticaController } from "@agentica/core";
|
|
2
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
2
3
|
import { Primitive } from "typia";
|
|
3
4
|
|
|
4
5
|
import { IAgenticaRpcListener } from "./IAgenticaRpcListener";
|
|
@@ -47,13 +48,15 @@ import { IAgenticaRpcService } from "./IAgenticaRpcService";
|
|
|
47
48
|
*
|
|
48
49
|
* @author Samchon
|
|
49
50
|
*/
|
|
50
|
-
export class AgenticaRpcService
|
|
51
|
+
export class AgenticaRpcService<Model extends ILlmSchema.Model>
|
|
52
|
+
implements IAgenticaRpcService<Model>
|
|
53
|
+
{
|
|
51
54
|
/**
|
|
52
55
|
* Initializer Constructor.
|
|
53
56
|
*
|
|
54
57
|
* @param props Properties to construct the RPC service
|
|
55
58
|
*/
|
|
56
|
-
public constructor(private readonly props: AgenticaRpcService.IProps) {
|
|
59
|
+
public constructor(private readonly props: AgenticaRpcService.IProps<Model>) {
|
|
57
60
|
const { agent, listener } = props;
|
|
58
61
|
|
|
59
62
|
// ESSENTIAL LISTENERS
|
|
@@ -70,7 +73,7 @@ export class AgenticaRpcService implements IAgenticaRpcService {
|
|
|
70
73
|
);
|
|
71
74
|
if (!!args) evt.arguments = args;
|
|
72
75
|
});
|
|
73
|
-
agent.on("execute", (evt) => listener.execute!(primitive(evt)));
|
|
76
|
+
agent.on("execute", (evt) => listener.execute!(primitive(evt as any)));
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
/**
|
|
@@ -83,24 +86,28 @@ export class AgenticaRpcService implements IAgenticaRpcService {
|
|
|
83
86
|
/**
|
|
84
87
|
* @inheritDoc
|
|
85
88
|
*/
|
|
86
|
-
public async getControllers(): Promise<
|
|
87
|
-
|
|
89
|
+
public async getControllers(): Promise<
|
|
90
|
+
Primitive<IAgenticaController<Model>>[]
|
|
91
|
+
> {
|
|
92
|
+
return this.props.agent.getControllers() satisfies ReadonlyArray<
|
|
93
|
+
IAgenticaController<Model>
|
|
94
|
+
> as Primitive<IAgenticaController<Model>>[];
|
|
88
95
|
}
|
|
89
96
|
}
|
|
90
97
|
export namespace AgenticaRpcService {
|
|
91
98
|
/**
|
|
92
99
|
* Properties of the {@link AgenticaRpcService}.
|
|
93
100
|
*/
|
|
94
|
-
export interface IProps {
|
|
101
|
+
export interface IProps<Model extends ILlmSchema.Model> {
|
|
95
102
|
/**
|
|
96
103
|
* Target agent to provide as RPC service.
|
|
97
104
|
*/
|
|
98
|
-
agent: Agentica
|
|
105
|
+
agent: Agentica<Model>;
|
|
99
106
|
|
|
100
107
|
/**
|
|
101
108
|
* Listener to be binded on the agent.
|
|
102
109
|
*/
|
|
103
|
-
listener: IAgenticaRpcListener
|
|
110
|
+
listener: IAgenticaRpcListener<Model>;
|
|
104
111
|
}
|
|
105
112
|
}
|
|
106
113
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IAgenticaEvent } from "@agentica/core";
|
|
2
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
2
3
|
import { Primitive } from "typia";
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -43,7 +44,7 @@ import { Primitive } from "typia";
|
|
|
43
44
|
*
|
|
44
45
|
* @author Samchon
|
|
45
46
|
*/
|
|
46
|
-
export interface IAgenticaRpcListener {
|
|
47
|
+
export interface IAgenticaRpcListener<Model extends ILlmSchema.Model> {
|
|
47
48
|
/**
|
|
48
49
|
* Describe the function executions' results.
|
|
49
50
|
*
|
|
@@ -52,14 +53,14 @@ export interface IAgenticaRpcListener {
|
|
|
52
53
|
*
|
|
53
54
|
* @param evt Event of a description of function execution results
|
|
54
55
|
*/
|
|
55
|
-
describe(evt: Primitive<IAgenticaEvent.IDescribe
|
|
56
|
+
describe(evt: Primitive<IAgenticaEvent.IDescribe<Model>>): Promise<void>;
|
|
56
57
|
|
|
57
58
|
/**
|
|
58
59
|
* Text conversation message.
|
|
59
60
|
*
|
|
60
61
|
* @param evt Event of a text conversation message
|
|
61
62
|
*/
|
|
62
|
-
text(evt:
|
|
63
|
+
text(evt: IAgenticaEvent.IText): Promise<void>;
|
|
63
64
|
|
|
64
65
|
/**
|
|
65
66
|
* Initialize the AI agent.
|
|
@@ -69,7 +70,7 @@ export interface IAgenticaRpcListener {
|
|
|
69
70
|
*
|
|
70
71
|
* @param evt Event of initialization
|
|
71
72
|
*/
|
|
72
|
-
initialize?(evt:
|
|
73
|
+
initialize?(evt: IAgenticaEvent.IInitialize): Promise<void>;
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
76
|
* Select a function to call.
|
|
@@ -78,7 +79,7 @@ export interface IAgenticaRpcListener {
|
|
|
78
79
|
*
|
|
79
80
|
* @param evt Event of selecting a function to call
|
|
80
81
|
*/
|
|
81
|
-
select?(evt: Primitive<IAgenticaEvent.ISelect
|
|
82
|
+
select?(evt: Primitive<IAgenticaEvent.ISelect<Model>>): Promise<void>;
|
|
82
83
|
|
|
83
84
|
/**
|
|
84
85
|
* Cancel a function to call.
|
|
@@ -87,7 +88,7 @@ export interface IAgenticaRpcListener {
|
|
|
87
88
|
*
|
|
88
89
|
* @param evt Event of canceling a function to call
|
|
89
90
|
*/
|
|
90
|
-
cancel?(evt: Primitive<IAgenticaEvent.ICancel
|
|
91
|
+
cancel?(evt: Primitive<IAgenticaEvent.ICancel<Model>>): Promise<void>;
|
|
91
92
|
|
|
92
93
|
/**
|
|
93
94
|
* Call a function.
|
|
@@ -107,7 +108,7 @@ export interface IAgenticaRpcListener {
|
|
|
107
108
|
* @return New arguments if you want to modify, otherwise null or undefined
|
|
108
109
|
*/
|
|
109
110
|
call?(
|
|
110
|
-
evt: Primitive<IAgenticaEvent.ICall
|
|
111
|
+
evt: Primitive<IAgenticaEvent.ICall<Model>>,
|
|
111
112
|
): Promise<object | null | undefined>;
|
|
112
113
|
|
|
113
114
|
/**
|
|
@@ -117,5 +118,5 @@ export interface IAgenticaRpcListener {
|
|
|
117
118
|
*
|
|
118
119
|
* @param evt Event of a function execution
|
|
119
120
|
*/
|
|
120
|
-
execute?(evt:
|
|
121
|
+
execute?(evt: IAgenticaEvent.IExecute<Model>): Promise<void>;
|
|
121
122
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IAgenticaController } from "@agentica/core";
|
|
2
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
2
3
|
import { Primitive } from "typia";
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -14,7 +15,7 @@ import { Primitive } from "typia";
|
|
|
14
15
|
*
|
|
15
16
|
* @author Samchon
|
|
16
17
|
*/
|
|
17
|
-
export interface IAgenticaRpcService {
|
|
18
|
+
export interface IAgenticaRpcService<Model extends ILlmSchema.Model> {
|
|
18
19
|
/**
|
|
19
20
|
* Conversate with the AI agent.
|
|
20
21
|
*
|
|
@@ -36,5 +37,5 @@ export interface IAgenticaRpcService {
|
|
|
36
37
|
* Get controllers, collection of functions that would be
|
|
37
38
|
* called by the AI chatbot.
|
|
38
39
|
*/
|
|
39
|
-
getControllers(): Promise<Primitive<IAgenticaController[]>>;
|
|
40
|
+
getControllers(): Promise<Primitive<IAgenticaController<Model>[]>>;
|
|
40
41
|
}
|