Enhance Agent and LLM APIs with Agent-to-Agent Communication #1430
Enhance Agent and LLM APIs with Agent-to-Agent Communication #1430trheyi merged 8 commits intoYaoApp:mainfrom
Conversation
- Added an initialization step in the Load function to register attachment processes, improving the setup for file management. - Expanded the README to include detailed documentation on the new Process API, outlining available processes, permission models, and usage examples for better developer guidance.
- Added support for a new "thinking" parameter in the request body for models that support reasoning/thinking mode, improving functionality. - Updated the request body construction to include debugging output for the full request body, aiding in troubleshooting and development. - Ensured that the model and other settings are retrieved from the connector, maintaining consistency in configuration handling.
- Eliminated debug print statements for the "thinking" parameter and the full request body in the OpenAI provider, streamlining the request construction process. - Maintained the functionality of including the "thinking" parameter for models that support reasoning/thinking mode, ensuring improved performance without unnecessary logging.
- Removed the validExts field from test cases, streamlining the filename generation tests. - Enhanced validation to ensure filenames have a proper extension format and are not empty, improving test robustness. - Updated comments for clarity on expected filename behavior based on content type.
- Added tests for saving plain text and Chinese text directly, ensuring proper handling of content without data URI encoding. - Updated the `parseDataURI` function to support plain text storage, returning the correct content type and data bytes. - Improved the `getAssistants` method to support nested assistants, enhancing directory scanning for assistant pages. - Refactored the `Page` method to accommodate assistant IDs with nested structures, improving route handling for pages.
- Added initialization for the Agent JSAPI factory to support ctx.agent.* methods, improving agent interaction capabilities. - Introduced a new agent object in the JSAPI context for calling other agents, enhancing modularity. - Implemented an OnMessage callback in the context options to handle messages sent via ctx.Send(), allowing for more flexible message processing.
…port - Updated `logrus` dependency from v1.9.3 to v1.9.4 and `golang.org/x/sys` from v0.38.0 to v0.40.0 for improved functionality and security. - Introduced a `Fork` method in the agent context to create child contexts for concurrent agent and LLM calls, preventing race conditions on shared state during batch operations. - Enhanced the `Orchestrator` methods to utilize forked contexts, ensuring independent execution of agent calls without interference.
- Introduced `ctx.agent` and `ctx.llm` objects in the context API for improved agent-to-agent (A2A) and direct LLM calls. - Added methods for single and parallel agent calls, including `Call`, `All`, `Any`, and `Race`, enabling flexible communication between agents. - Enhanced documentation with detailed method summaries, parameters, and examples for better developer guidance on using the new APIs.
|
🤖 Robot E2E Tests running with SQLite... |
|
Thank you for the PR! The db: MySQL8.0 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
Thank you for the PR! The db: MySQL8.0 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
Thank you for the PR! The db: SQLite3 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
🤖 KB Tests (kb) running with SQLite... |
|
Thank you for the PR! The db: MySQL8.0 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
Thank you for the PR! The db: SQLite3 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
Thank you for the PR! The db: SQLite3 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
🤖 AI Tests (agent, aigc) running with SQLite... |
|
✅ KB Tests (kb) passed! |
|
✨DONE✨ db: SQLite3 redis: 6 mongo: 6.0 passed. |
|
✨DONE✨ db: SQLite3 redis: 4 mongo: 6.0 passed. |
|
✨DONE✨ db: SQLite3 redis: 5 mongo: 6.0 passed. |
|
✨DONE✨ db: MySQL8.0 redis: 6 mongo: 6.0 passed. |
|
✅ Robot E2E Tests passed! |
|
✨DONE✨ db: MySQL8.0 redis: 5 mongo: 6.0 passed. |
|
✨DONE✨ db: MySQL8.0 redis: 4 mongo: 6.0 passed. |
|
✅ AI Tests (agent, aigc) passed! |
No description provided.