Ask agent modes - #110
Draft
orca-gamedev wants to merge 1 commit into
Draft
Conversation
- Add 'mode' parameter to /chat endpoint ('agent' or 'ask')
- Agent mode (default): Full access to all tools
- Ask mode: Read-only, disables write/edit tools
- Write tools disabled in ask mode:
- create_node, delete_node, batch_set_node_properties
- move_node, attach_script, manage_scene
- load_and_assign_resource, add_collision_shape
- apply_edit, save_image_to_path, install_godot_asset
- System prompt updated to reflect current mode
- Logs show filtered tool count per request
Co-authored-by: ege <ege@simplifine.com>
|
Cursor Agent can help with this pull request. Just |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR implements the "Ask/Agent modes" feature as described in ORC-53.
Why these changes?
The primary goal is to introduce a safety mechanism for the AI agent.
How it works:
The
/chatendpoint now accepts an optionalmodeparameter ("agent"or"ask"). Based on this mode, afilter_tools_by_modefunction dynamically restricts the tools available to the AI. Additionally, the system prompt is updated to clearly inform the AI about its current operational mode and associated limitations or permissions.Linear Issue: ORC-53