Hi @Luciano_Penafiel, I’ve found a way to extract Token Usage within the execution making use of LangChain callbacks.
I’ve used LangChain documentation as reference: Tracking token usage | 🦜️🔗 Langchain
Takee a look at this example:
Hi @Luciano_Penafiel, I’ve found a way to extract Token Usage within the execution making use of LangChain callbacks.
I’ve used LangChain documentation as reference: Tracking token usage | 🦜️🔗 Langchain
Takee a look at this example: