Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Trying to generalize tool agent * bumping reqs * Raising error to trigger next retry * Better error handling here * Bump * Adding runtime oai_kwargs * Some docs * Version bump * Better handling of temperature default (if there should even be one at all) * Handling case where multiple tool calls are needed - In this case, we might try to access completion message as a dict but this will fail * Appending chat message to cache before we parse the arguments * Maybe copying? * We must go deeper * Does this work? * . * Revert "." This reverts commit 8b4e50c. * Revert "Does this work?" This reverts commit 0bd8f40. * bump * another bump * Function is deprecated * Don't init mutables * Actually extend, don't pass method * Adding a structured prediction agent - This also expands the dependencies quite a bit, so I'm not sure about it * WIP async * Fixing to appropriate api usage * dbug * Does ths work better? * even more async * redoing exports * Whoops * retying * Thinking * No more async for now * Missed tiktoken and backoff, somehow * bump README * Version bump * Trying to add in justification too * whoops * Adding batch processor to API * A few more tweaks * Generalizing Prediction agent - Making it easier to subclass and not being project-specific with formatting - df no longer copied * Fixing parallel processing logic * Avoiding async directives * more classes * Handle agents which return >1 str per sample * Version bump * Adding general batch processor for lists and such * Allowing additional kwargs in agent call method * Trying async * Forgot an await * Avoid getting hung up on a single agent * Making sure the task_done signal gets called * Forgot this piece too * Moving these to where I think they should go * A pretty subtantial re-write - ToolAwareAgent is now just wrapped into Agent - Agent is no longer abstract, can be inited directly (though it doesn't make a lot of sense to do so) - Agent gets Tool and Callback handling natively - Wrote some more doc string * Substantial re-write (#3) * WIP re-write * Huge re-write to API - Moving a few things around - Will probably move more * Updating Reqs accordingly * Adding agent callback example * Some addn tweaks * Updating setup * Trying to figure out stopping conditions * Forgot to add tools, actually * Updating reqs * Trying to work in a few things * Adding structured output agent - Will maybe replace Prediction agent? Not sure * Structured Prediction example * Don't force a tool call because it's API dependent * Changing symbol * A few bits of housecleaning * Storing this here for now * Removing MultiStepToolAgent, which wasn't used * Slimming down prediction agent and making it a subclass * Updating reqs to include tqdm which I forgot * Cleaning up processors * Fixing types and a few other things wrt mypy * Fixing issue where structured responses would only append key instead of whole object * Adding batch processing example * Moving to the correct place * Updating readme * Updating typing in callback * Bumping Version * Fixing issue where messages appened to tool res list even though no tool calls were made * Updating stopping condition to check for length too * Fixing issue where tools was modified by reference leading to errors in subsequent calls * Actually fixing this * Baking in some additional logic to correct when agent tries to call an unknown function * Sending the actual name of the tool instead of the error * Trying to handle this at a different level - Also updating class with a property * It would help to also have the assertion in there * missp
- Loading branch information