v0.3 Alpha
Pre-release
Pre-release
Changes
Docs
- Added examples
- Updated README
User-facing
- Removed a lot of the OG classes and framework that I started with, as it wasn't really serving its purpose anymore
- Added
StoppingCondition
s as a standard class to trigger when an Agent has finished rather then handle this internally- This is called at the end of every step to determine whether the Agent should terminate or not, and handles answer extraction
- Added Callbacks as a option to handle triggering additional functions at the end of the run with the answer and scratchpad of the calling agent
- A lot of work making abstract classes and getting typing all correct
- Added
response_model_handler
decorator to handle Pydantic BaseModel validation- Either returns validated BaseModel, or string to pass back to Agent indicating error
- New
StructuredOutputAgent
, which is basically just providing whatPredictionAgent
does, but assumes you can construct the response object before runtime.- Might end up getting rid of the prediction bits as a result
BatchProcessor
ChangesBatchProcessor
now handles the batch object as a kwarg to be inserted into fstring rather than passing as first arg to Agent- You should now include
"{batch}"
in BASE_PROMPT attribute where these data should be inserted - Added additional
_batch_format
method, which supplies logic to convert batch into string (useful in the DataFrame case)
Full Changelog: v0.2...v0.3-alpha