Go, Machine Learning, AWS, Programming, Cloud.
pr.Message.ID resp.Usage.InputTokens = pr.Message.Usage.InputTokens } else if pr.Type == partialResponseTypeMessageDelta { resp.StopReason = pr.Delta.StopReason resp.Usage.OutputTokens = pr.Message.Usage.OutputTokens } //... } resp.ResponseContent[0].Text = combinedResult return resp, nil } Use