mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
refactor(framework): use moduleName as modelKey for
`AbstractAgentModule` instances in ActivateModel
This commit is contained in:
@@ -95,7 +95,11 @@ interface ActivateModel {
|
|||||||
* 对应调用的模型配置名称
|
* 对应调用的模型配置名称
|
||||||
*/
|
*/
|
||||||
fun modelKey(): String {
|
fun modelKey(): String {
|
||||||
return javaClass.simpleName
|
return if (this is AbstractAgentModule) {
|
||||||
|
this.moduleName
|
||||||
|
} else {
|
||||||
|
javaClass.simpleName
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun withBasicPrompt(): Boolean
|
fun withBasicPrompt(): Boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user