Go, Machine Learning, AWS, Programming, Cloud.
json.NewDecoder(bytes.NewReader(v.Value.Bytes)).Decode(&pr) if err != nil { return resp, err } if pr.Type == partialResponseTypeContentBlockDelta { handler(context.Background(), []byte(pr.Delta.Text)) combinedResult += pr.Delta.Text } else if pr.Type == partialResponseTypeMessageStart { resp.ID =