Skip to content

feat. The library should expose the meta data returned by a request #60

@sebsto

Description

@sebsto

When calling InvokeModel or Converse APIs, Bedrock not only returns the response but also metadata, such as the token count, the latency, the service tier, etc.

As of today, our Converse API returns a Message that doesn't expose these metadata

For Converse, see

public init(from sdkMessage: BedrockRuntimeClientTypes.Message) throws {

For Invoke Model, see

let invokemodelResponse: InvokeModelResponse = try InvokeModelResponse.createTextResponse(

The library should expose these metadata to the user.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions