generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
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
swift-bedrock-library/Sources/BedrockService/BedrockRuntimeClient/Converse/Message.swift
Line 86 in 0a88772
| public init(from sdkMessage: BedrockRuntimeClientTypes.Message) throws { |
swift-bedrock-library/Sources/BedrockService/BedrockRuntimeClient/Converse/Message.swift
Line 97 in 0a88772
| public init(_ response: ConverseOutput) throws { |
For Invoke Model, see
Line 125 in 0a88772
| let invokemodelResponse: InvokeModelResponse = try InvokeModelResponse.createTextResponse( |
The library should expose these metadata to the user.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed