mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-25 18:21:09 +08:00
fix: cannot unmarshal object into Go struct field SubActionResult error
This commit is contained in:
@@ -167,7 +167,7 @@ func (dExt *XTDriver) StartToGoal(ctx context.Context, prompt string, opts ...op
|
|||||||
log.Error().Err(err).
|
log.Error().Err(err).
|
||||||
Str("action", toolCall.Function.Name).
|
Str("action", toolCall.Function.Name).
|
||||||
Msg("invoke tool call failed")
|
Msg("invoke tool call failed")
|
||||||
subActionResult.Error = err
|
subActionResult.Error = err.Error()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
@@ -400,7 +400,7 @@ type SubActionResult struct {
|
|||||||
Arguments interface{} `json:"arguments,omitempty"` // arguments passed to the sub-action
|
Arguments interface{} `json:"arguments,omitempty"` // arguments passed to the sub-action
|
||||||
StartTime int64 `json:"start_time"` // sub-action start time
|
StartTime int64 `json:"start_time"` // sub-action start time
|
||||||
Elapsed int64 `json:"elapsed_ms"` // sub-action elapsed time(ms)
|
Elapsed int64 `json:"elapsed_ms"` // sub-action elapsed time(ms)
|
||||||
Error error `json:"error,omitempty"` // sub-action execution result
|
Error string `json:"error,omitempty"` // sub-action execution result
|
||||||
SessionData
|
SessionData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user