Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description: Set Up Tools Structures & Minor Error Handling in iModel
This PR refactors and expands LionAGI to include initial placeholders for various tools (e.g.
browser
,code
,file
) under a consistent directory structure. It also includes a minor enhancement for handling missingapi_key
iniModel
whenrequires_api_key=True
, raising a clearValueError
if none is found.Key Changes
Tools Directory Structure
lionagi/tools
folder containing subfolders likebrowser
,code
,file
, and their respective providers.__init__.py
and placeholder modules (e.g.aider_.py
,docling_.py
) as initial scaffolding.base.py
intools
that sets up a minimal foundation for tool classes.Minor iModel Error Handling
iModel.__init__()
, ifapi_key
is not provided (andrequires_api_key=True
), the code now raisesValueError("API key must be provided")
.Version Bump
0.9.2
to0.9.3
inlionagi/version.py
andpyproject.toml
.Housekeeping
utils
or placeholder references for upcoming expansions (e.g., docling support inreader.py
).Rationale
iModel
error messages around API keys prevents hidden misconfigurations and aligns with “fail fast” best practices.Next Steps
tools/browser/providers
andtools/code/providers
, finalizing method-level logic.Action
system for consistent function-calling from LLM prompts.