invoke_agent – getting input and output tokens tokens for underlying invoke_model api calls in bedrock agent runtime
In the documentation for invoke_agent, the response has this sub key called inputTokens and outputTokens. The said keys are supposed to be part of the trace, hence trace needs to be enabled. I’m not seeing the inputToken and outputToken as part of the event stream when I’m looping over it and print the whole thing. Has anyone faces this issue.