mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
added usage_metrics to full output (#756)
* added extra parameter for kickoff to return token usage count after result * added output_token_usage to class and in full_output * logger duplicated * added more types * added usage_metrics to full output instead * added more to the description on full_output * possible mispacing
This commit is contained in:
@@ -384,6 +384,12 @@ def test_crew_full_ouput():
|
||||
assert result == {
|
||||
"final_output": "Hello! It is a delight to receive your message. I trust this response finds you in good spirits. It's indeed a pleasure to connect with you too.",
|
||||
"tasks_outputs": [task1.output, task2.output],
|
||||
"usage_metrics": {
|
||||
"completion_tokens": 109,
|
||||
"prompt_tokens": 330,
|
||||
"successful_requests": 2,
|
||||
"total_tokens": 439,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user