fix(plugin): default value for tool execution response parameter type (#683)
Co-authored-by: mrh <mrh997>
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user