How to count tokens in Agency Swarm? (Token Accounting) #91
Replies: 4 comments
-
Hi @hakimmanik, I was wondering if you were able to solve your issue and how you did it |
Beta Was this translation helpful? Give feedback.
-
Hii @hakimmanik Have youi encountered any solutions yet. If yes please help me with it |
Beta Was this translation helpful? Give feedback.
-
@hakimmanik Have you tried to use tiktoken python library? |
Beta Was this translation helpful? Give feedback.
-
We’re currently integrating Langfuse observability, which will provide several options for tracking tokens and costs. |
Beta Was this translation helpful? Give feedback.
-
Agency Swarm is great framework, but for my Saas, I'm charging my users depending on tokens. so I need to account how much token have I even used? I'd need both input tokens and output tokens used to generate one message reply (including messages sent to other agents)
Beta Was this translation helpful? Give feedback.
All reactions