crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Agent Request Throttling

Open greysonlalonde opened this issue 1 year ago • 1 comments

@joaomdmoura API throttling per agent is frequently mentioned in issues. Is there space on the roadmap to address this, and if so, mind if I start on it?

greysonlalonde avatar Jan 12 '24 16:01 greysonlalonde

@greysonlalonde This would be amazing! Utilizing 2 simple variables when defining the agent would work well:

completed_successful_requests_perminute = 59 # This will track how many API Requests have been completed tokens_processed_perminute = 500 # If possible, the ability to limit the amount of tokens it will process in per minute or per task.

mindwellsolutions avatar Jan 12 '24 18:01 mindwellsolutions

Done, merged in main, will cut a new version tomorrow and add docs

joaomdmoura avatar Jan 14 '24 03:01 joaomdmoura