pydantic-ai icon indicating copy to clipboard operation
pydantic-ai copied to clipboard

Add `message_limit` (number of model messages) and `cost_limit` to `run()` methods

Open samuelcolvin opened this issue 1 year ago • 1 comments

To mitigate the risk that an agent gets into an infinite loop.

samuelcolvin avatar Nov 19 '24 13:11 samuelcolvin

i want to have a try

fatelei avatar Dec 12 '24 12:12 fatelei

hello, is this issue solved in #409 ? or is it still open ?

moustaphacheikh avatar Dec 26 '24 03:12 moustaphacheikh

Yes, this was solved in #409.

samuelcolvin avatar Dec 26 '24 14:12 samuelcolvin