-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat: Enhance backend with context management, error handling, and refactored code #4286
Commits on Nov 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c16febb - Browse repository at this point
Copy the full SHA c16febbView commit details -
Configuration menu - View commit details
-
Copy full SHA for f21cad7 - Browse repository at this point
Copy the full SHA f21cad7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bc072f - Browse repository at this point
Copy the full SHA 3bc072fView commit details -
Add agent components for action routing, decision-making, execution, …
…and context management - Introduced `AgentActionRouter` to route agent flow based on action type. - Added `DecideActionComponent` for determining actions from context and prompts. - Implemented `ExecuteActionComponent` to execute actions using available tools. - Created `GenerateThoughtComponent` for generating thoughts based on context. - Developed `ProvideFinalAnswerComponent` to generate final answers from context. - Built `AgentContextBuilder` for constructing `AgentContext` instances. - Added `ObserveResultComponent` to process and observe action results. - Implemented `CheckTerminationComponent` to determine if the agent should continue or terminate.
Configuration menu - View commit details
-
Copy full SHA for f2e0944 - Browse repository at this point
Copy the full SHA f2e0944View commit details -
Add AgentContext class for managing agent state and context serializa…
…tion - Introduced `AgentContext` class in `context.py` to handle agent state, including tools, language model, and context history. - Implemented serialization methods for converting agent context to JSON-compatible format. - Added validation for language model instances to ensure compatibility. - Provided methods for updating and retrieving full context, including context history management.
Configuration menu - View commit details
-
Copy full SHA for 383b05f - Browse repository at this point
Copy the full SHA 383b05fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 949cf2f - Browse repository at this point
Copy the full SHA 949cf2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3025d42 - Browse repository at this point
Copy the full SHA 3025d42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e9237d - Browse repository at this point
Copy the full SHA 8e9237dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c05d6a - Browse repository at this point
Copy the full SHA 8c05d6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bd5eda - Browse repository at this point
Copy the full SHA 9bd5edaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03bdb8e - Browse repository at this point
Copy the full SHA 03bdb8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9239fa0 - Browse repository at this point
Copy the full SHA 9239fa0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce3c90b - Browse repository at this point
Copy the full SHA ce3c90bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c705228 - Browse repository at this point
Copy the full SHA c705228View commit details -
Configuration menu - View commit details
-
Copy full SHA for acccceb - Browse repository at this point
Copy the full SHA accccebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 46fbe77 - Browse repository at this point
Copy the full SHA 46fbe77View commit details -
Add context management methods to custom component class
- Introduced a `_ctx` attribute to store context data. - Added `ctx` property to access the graph's context, raising an error if the graph is not built. - Implemented `add_to_ctx` method to add key-value pairs to the context with an optional overwrite flag. - Implemented `update_ctx` method to update the context with a dictionary of values, ensuring the graph is built and the input is a dictionary.
Configuration menu - View commit details
-
Copy full SHA for e0bde19 - Browse repository at this point
Copy the full SHA e0bde19View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad485c3 - Browse repository at this point
Copy the full SHA ad485c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c5e9b4 - Browse repository at this point
Copy the full SHA 5c5e9b4View commit details -
Convert
get_response
method to asynchronous and update graph proces……sing to use async iteration.
Configuration menu - View commit details
-
Copy full SHA for abfec35 - Browse repository at this point
Copy the full SHA abfec35View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb8f451 - Browse repository at this point
Copy the full SHA cb8f451View commit details -
Refactor Agent Flow JSON: Simplify input types and update agent compo…
…nent structure - Removed "BaseTool" from input types for "ToolCallingAgent" to streamline tool handling. - Updated agent component to a more modular structure with new prompts and input configurations. - Replaced deprecated methods and fields with updated implementations for improved functionality. - Adjusted metadata and configuration settings for better clarity and usability.
Configuration menu - View commit details
-
Copy full SHA for 0c8cfae - Browse repository at this point
Copy the full SHA 0c8cfaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for ae5a2f2 - Browse repository at this point
Copy the full SHA ae5a2f2View commit details -
Add Agent import to init, improve error handling, and clean up imports
- Added `Agent` import to `__init__.py` for better module accessibility. - Improved error handling in `aiml_embeddings.py` by raising a `ValueError` when the expected embedding count is not met. - Cleaned up redundant imports in `test_cycles.py` to enhance code readability.
Configuration menu - View commit details
-
Copy full SHA for 736e580 - Browse repository at this point
Copy the full SHA 736e580View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b0bb3d - Browse repository at this point
Copy the full SHA 4b0bb3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for aeba83a - Browse repository at this point
Copy the full SHA aeba83aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3559812 - Browse repository at this point
Copy the full SHA 3559812View commit details -
Refactor graph tests to include new components and update iteration l…
…ogic - Replaced complex agent flow with a simplified guessing game using OpenAI components and conditional routing. - Introduced `TextInputComponent` and updated `ChatInput` initialization. - Added new test `test_conditional_router_max_iterations` to validate conditional routing with max iterations. - Updated graph cyclicity assertions and snapshot checks for improved test coverage. - Removed deprecated agent components and related logic.
Configuration menu - View commit details
-
Copy full SHA for bf9cd5c - Browse repository at this point
Copy the full SHA bf9cd5cView commit details -
Refactor conditional router to return message consistently and use it…
…erate_and_stop_once method
Configuration menu - View commit details
-
Copy full SHA for c00eaff - Browse repository at this point
Copy the full SHA c00eaffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f5b04f - Browse repository at this point
Copy the full SHA 2f5b04fView commit details -
Remove unnecessary
@override
decorator and add# noqa: ARG002
com……ments for unused arguments
Configuration menu - View commit details
-
Copy full SHA for 3202716 - Browse repository at this point
Copy the full SHA 3202716View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1b690f - Browse repository at this point
Copy the full SHA d1b690fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bd0ad4 - Browse repository at this point
Copy the full SHA 9bd0ad4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 917eaec - Browse repository at this point
Copy the full SHA 917eaecView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad1ebe3 - Browse repository at this point
Copy the full SHA ad1ebe3View commit details -
Implement synchronous graph execution using threading and queues
- Removed `nest_asyncio` dependency and replaced it with a new threading-based approach for synchronous graph execution. - Introduced a `queue.Queue` to handle results and exceptions between threads. - Added a new thread to run asynchronous code, ensuring proper event loop management and task completion. - Updated methods to return sorted lists of runnable vertices for consistency.
Configuration menu - View commit details
-
Copy full SHA for 3edcb36 - Browse repository at this point
Copy the full SHA 3edcb36View commit details
Commits on Nov 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e3d2389 - Browse repository at this point
Copy the full SHA e3d2389View commit details
Commits on Nov 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for dadaad5 - Browse repository at this point
Copy the full SHA dadaad5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 541cc94 - Browse repository at this point
Copy the full SHA 541cc94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21d434e - Browse repository at this point
Copy the full SHA 21d434eView commit details
Commits on Nov 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 541a31e - Browse repository at this point
Copy the full SHA 541a31eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d591f6 - Browse repository at this point
Copy the full SHA 7d591f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a57fd04 - Browse repository at this point
Copy the full SHA a57fd04View commit details -
Configuration menu - View commit details
-
Copy full SHA for edfa7b7 - Browse repository at this point
Copy the full SHA edfa7b7View commit details
Commits on Nov 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 195810b - Browse repository at this point
Copy the full SHA 195810bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f244aba - Browse repository at this point
Copy the full SHA f244abaView commit details -
Configuration menu - View commit details
-
Copy full SHA for f3bcbc1 - Browse repository at this point
Copy the full SHA f3bcbc1View commit details
Commits on Nov 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cb61de5 - Browse repository at this point
Copy the full SHA cb61de5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06d79bf - Browse repository at this point
Copy the full SHA 06d79bfView commit details