-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* If model is Amazon Nova, combine multiple system prompts into one text. #629 * If model is Amazon Nova, set the upper limit of topK to 128. #629 * Remove title key from input JSON schema of AgentTool. #629 * Optimization for Amazon Nova. - Change the system prompt when doing 'Retrieved Context Citation' with Amazon Nova. - If the tool result has more than one element, pass it as single text content formatted as JSON array. * Fix: mypy errors. * Add stack trace to backend error logs. * Fix for multimodal tool results for Amazon Nova * Add comments, and document changes. - `RemoveTitle` in app/agents/tools/agent_tool.py - `_prepare_nova_model_params()` in app/bedrock.py - `build_rag_prompt()` and `get_prompt_to_cite_tool_results()` in app/prompt.py - `BaseTool` -> `AgentTool` in docs/AGENT.md * Move `is_nova_model()` back to app/bedrock.py - To avoid circular imports, add `from __future__ import annotations` and `if TYPE_CHECKING` to app/bedrock.py * Update document of Agent functionality - docs/AGENT.md * Change `run_result_to_tool_result_content_model()` to be an instance method of `ToolResultContentModel` - `agent_tool.run_result_to_tool_result_content_model()` -> `ToolResultContentModel.from_tool_run_result()`
- Loading branch information
1 parent
3b48782
commit 087e263
Showing
14 changed files
with
235 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.