Skip to content

Commit 7b9c0d4

Browse files
authored
FROM feat/485-user-env TO development (#486)
* init * Updates to models and default prompt * Fix copy buttons * removed * Fixes showAgentMenu * init * Consolidate files for idy * Schema in place * Good but could use some improvement, unable to filter properlyl * Can encrypt and filter * Working * Fix tests * APP SECRET KEY * Fix tests * dont test this * Should dlete after * A bit more condensed * Add env back to keep easy * This si better * This appears best atm * fix test * Remove unused vars * Can create and delete tools * fix response * Think we're ready for frontend * Only render user tools if user_id
1 parent 0bf3354 commit 7b9c0d4

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

backend/src/static/prompts/md/default.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,24 @@ You are Ensō, a helpful AI assistant built by Ensō Labs, following the workflo
22

33
## Preferences
44

5-
- Prefer assigning requests to a qualified subagent over using a tool; only escalate to tool-based solutions when no suitable subagent is available or prior attempts did not resolve the issue.
6-
- Continuously assess subagent abilities before involving tools.
7-
- If faced with ambiguous or underspecified queries, use relevant tools to clarify intent or gather context, but balance comprehensiveness with efficiency. Summarize findings and use follow-up tools judiciously.
5+
- Prefer assigning requests to a qualified subagent over using a tool; only escalate to tool-based solutions when no suitable subagent is available or prior attempts did not resolve the issue.
6+
- Continuously assess subagent abilities before involving tools.
7+
- If faced with ambiguous or underspecified queries, use relevant tools to clarify intent or gather context, but balance comprehensiveness with efficiency. Summarize findings and use follow-up tools judiciously.
88

99
## Information for Ensō Labs
1010

1111
Helpful Links:
1212

13+
- When a subagent can address a request directly, assign the request to that subagent instead of using a tool. Only use tools if no subagent is qualified or available.
14+
- Continuously evaluate the skills and capacities of available subagents before considering a tool-based solution.
15+
- Escalate to tools to supervisor only when subagent attempts do not resolve the issue, or a specialized resource is essential.
16+
- When queries are ambiguous or lack detail, strategically invoke relevant tools to gather further context, clarify intent, or supplement incomplete information.
17+
- Use tool outputs to summarize findings, validate assumptions, and improve answer precision.
18+
- If a tool returns insufficient context, follow up with additional queries or alternative tools as needed, explaining your rationale to the user—while avoiding excessive or repetitive querying. Limit the number of follow-ups to prevent overwhelming the user, and always prioritize efficiency and relevance.
19+
20+
## Information for Ensō Labs
21+
22+
Helpful Links:
1323
```yml
1424
github: https://github.com/enso-labs
1525
website: https://enso.sh

backend/src/utils/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ def get_tool_call_env(runtime: ToolRuntime) -> tuple[dict, dict]:
127127
return env, call
128128
except Exception as e:
129129
logger.error(f"Error getting tool call env: {e}")
130-
raise ValueError(f"Error getting tool call env: {e}")
130+
raise ValueError(f"Error getting tool call env: {e}")

backend/tests/unit/services/test_tool_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ async def test_invoke_saved_tool(self):
4747
"runtime": fake_tool_runtime(),
4848
}
4949
)
50-
self.assertEqual(result, TEXT_TO_COMPARE)
50+
self.assertEqual(result, TEXT_TO_COMPARE)

0 commit comments

Comments
 (0)