10000 Updated tools by ohdearquant · Pull Request #537 · khive-ai/lionagi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updated tools #537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 19, 2025
Merged

Updated tools #537

merged 6 commits into from
Jan 19, 2025

Conversation

ohdearquant
Copy link
Collaborator
@ohdearquant ohdearquant commented Jan 19, 2025

PR Description

This PR (#537) refactors and enhances the ReAct flow and tool usage within lionagi.

Key Changes:

  • Improves extension logic in ReAct.py by adjusting how additional rounds (extension_needed) are handled.
  • Updates the prompt messages in ReActAnalysis to be clearer, with a new approach to generating follow-up instructions.
  • Refactors how function calling arguments are validated against Pydantic models, ensuring more robust error handling (function_calling.py and tool.py).
  • Simplifies and minimizes the textual output logic in instruction.py, reducing token usage while preserving essential context.
  • Bumps the version to 0.8.3 to reflect these improvements.

Why This Matters:

  • The improved extension logic allows iterative tool usage to happen more naturally, enabling step-by-step expansions of AI reasoning.
  • The updated function-calling pipeline clarifies how arguments are prepared and ensures they match their respective Pydantic schemas.
  • The minimized textual output in instruction.py helps reduce overhead in the communication with large language models.

@ohdearquant ohdearquant merged commit 39d044f into main Jan 19, 2025
5 checks passed
@ohdearquant ohdearquant deleted the updated-tools branch January 19, 2025 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0