Closed debuggerone closed 2 months ago
As an FYI... I don't have any components that use tokenCounter()
yet other then textSplitter()
but there's nothing that uses textSplitter()
. There will likely be Micro Agents coming that do but not yet so I'd just say this is a lower priority support wise.
I just wanted to have a functionality that prevents running into rate limits - which is pretty painful to debug if you are new to the model usage - and I am pretty sure the limits will hit hard where I am going to use it.
After a couple of hours of sleep I think you are right.. let's not over engineer this. Will throw it out now and just keep it simple and then release a system that utilizes it in an abstract layer - with a couple of systems or a plugin system..
After all it's micro agents with tiny prompts
removed the database functionality
Subtask Overview
This subtask involves replacing the JavaScript
tokenCounter
function with the tiktoken library in Python for managing tokenization and token counting during the AgentM Python migration.Tasks
tokenCounter
using tiktoken.Acceptance Criteria
tokenCounter
with correct token handling.