fix(plugin): default value for tool execution response parameter type (#683)

Co-authored-by: mrh <mrh997>
This commit is contained in:
mrh997
2025-08-11 14:09:08 +08:00
committed by GitHub
parent 6501e9aef6
commit ad18b9cc42
7 changed files with 394 additions and 13 deletions

View File

@@ -121,6 +121,7 @@ func (p *pluginInvokableTool) InvokableRun(ctx context.Context, argumentsInJSON
}
opts := []pluginEntity.ExecuteToolOpt{
plugin.WithInvalidRespProcessStrategy(plugin.InvalidResponseProcessStrategyOfReturnDefault),
plugin.WithToolVersion(p.toolInfo.GetVersion()),
plugin.WithProjectInfo(p.projectInfo),
}

View File

@@ -69,6 +69,7 @@ func (pr *toolPreCallConf) toolPreRetrieve(ctx context.Context, ar *AgentRequest
}
opts := []pluginEntity.ExecuteToolOpt{
plugin.WithInvalidRespProcessStrategy(plugin.InvalidResponseProcessStrategyOfReturnDefault),
plugin.WithProjectInfo(&plugin.ProjectInfo{
ProjectID: ar.Identity.AgentID,
ProjectType: plugin.ProjectTypeOfAgent,