Skip to content

Commit d269b01

Browse files
feat: Add advanced agent configuration features to TrueFoundry UI (#547)
* feat: Add advanced agent configuration features to TrueFoundry UI * feat: Enhance agent configuration with debounced instructions handling * feat: Update DraftModelCatalogPanel to conditionally display model cost column * feat: Enhance agent runtime configuration display and summary * feat: Enhance SaveAgentButton with agentSpecOverride for improved form handling * feat: Refactor SaveAgentButton and AgentConfigPanel to support instructionsOverride and close action * feat: Enhance AgentConfigDrawerContainer to prevent closing on Escape when dialog is open and add unit tests * chore: Bump @truefoundry/assistant-ui-runtime to version 0.1.26 across multiple packages * feat: Improve MCP and skill selectors with enhanced search sizing, explicit controls, and removable MCP chips * fix formatting * feat: Add logic to manage connector addition based on authentication state and update tests for unauthenticated connectors --------- Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 1c67237 commit d269b01

60 files changed

Lines changed: 3683 additions & 985 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@truefoundry/trueforge-ui': minor
3+
---
4+
5+
Add a live advanced agent configuration drawer with shared model, runtime, MCP tool, skill, and Save Agent editors.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@truefoundry/trueforge-ui': patch
3+
---
4+
5+
Improve MCP and skill selectors with consistent search sizing, explicit MCP selection controls, grouped tool summaries, and removable MCP chips.

‎docs/ui-sdk/guides/agent-modes.mdx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ All conversations use a single named agent configured through the name parameter
3030

3131
## AgentComposer
3232

33-
Users can create a new agent by selecting a model, skills, and MCP servers, then save the configured agent to the library for future use.
33+
Users can create a new agent by selecting a model, skills, and MCP servers, then save the configured agent to the library for future use. The composer Tools menu stays focused on connectors and skills. Agent Config opens the full draft editor for model parameters, instructions, runtime behavior, MCP tool selection, and skills.
34+
35+
Agent Config changes apply to the active draft immediately. The Save Agent dialog keeps an independent working copy of the same fields and reuses the same model, MCP, and skill pickers; cancelling that dialog discards only its local changes. Model limits and pricing are shown when the configured server provides them.
3436

3537
<Frame>
3638
![Agent Composer 1](/images/agent-composer-1.png "Agent Composer 1")

‎packages/frontend/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@assistant-ui/core": "0.2.22",
2727
"@assistant-ui/react": "0.14.27",
2828
"@assistant-ui/store": "0.2.21",
29-
"@truefoundry/assistant-ui-runtime": "0.1.25",
29+
"@truefoundry/assistant-ui-runtime": "0.1.26",
3030
"@truefoundry/trueforge-sdk": "workspace:*",
3131
"@truefoundry/trueforge-ui": "workspace:*",
3232
"monaco-editor": "^0.52.0",

‎packages/trueforge-ui/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ show the title text (see [Custom layouts](#custom-layouts)).
407407

408408
In library modes, picking an agent from the Agents Library switches to a named chat for that agent **and remounts the runtime** so the new agent starts from a clean conversation. Draft chats can be promoted via **Save agent** (`server.saveAgent` on the resolved `AgentUIServer`). **Clear Chat** (thread header) resets the current named or draft session.
409409

410+
Mutable composers expose **Agent Config** for live model parameters, instructions, runtime behavior, per-connector MCP tools, and skills. The compact Tools picker contains only Connectors and Skills. The Save Agent dialog keeps a local editable copy of the same configuration and shares the same selector dialogs; cancelling it leaves the active draft unchanged. Model context and output limits render when the server supplies that optional catalog metadata.
411+
410412
```tsx
411413
{
412414
/* Library + draft (default) */

‎packages/trueforge-ui/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"@openuidev/react-headless": "^0.9.4",
9696
"@openuidev/react-lang": "^0.2.9",
9797
"@openuidev/react-ui": "^0.13.2",
98-
"@truefoundry/assistant-ui-runtime": "0.1.25",
98+
"@truefoundry/assistant-ui-runtime": "0.1.26",
9999
"@truefoundry/trueforge-sdk": "workspace:*",
100100
"chart.js": "^4.5.1",
101101
"clsx": "^2.1.1",

0 commit comments

Comments
 (0)