langchain-ai / langchain-google

MIT License
117 stars 149 forks source link

genai: added usage metadata info in the llm results(#573) #584

Closed holiholiholiholi closed 1 week ago

holiholiholiholi commented 3 weeks ago

PR Description

Added usage metadata in the Generation object in llm._generate function, similar as in package vertexai.

Relevant issues

Fixes #573

Type

🆕 New Feature

Changes(optional)

Testing(optional)

Note(optional)