Skip to content

feat: add A2UI#13

Open
tylerslaton wants to merge 1 commit intomainfrom
tyler/add-a2ui
Open

feat: add A2UI#13
tylerslaton wants to merge 1 commit intomainfrom
tyler/add-a2ui

Conversation

@tylerslaton
Copy link
Contributor

No description provided.

Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
Copy link
Contributor Author

@tylerslaton tylerslaton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ranst91 some comments for you as you take a look into this!

Comment on lines +5 to +14
// new MCPAppsMiddleware({
// mcpServers: [
// {
// type: "http",
// url:
// process.env.MCP_SERVER_URL || "https://mcp.excalidraw.com",
// serverId: "example_mcp_app",
// },
// ],
// }),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the fix to multiple middlewares this will allow us to uncomment this out.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also use the new runtime properties for this instead of the middlewares at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want this to a bit more built-in. Like, we could include a default theme in the renderer that we let the user replace - something like that.

Comment on lines +14 to +17
"@copilotkit/a2ui-renderer": "^1.52.1",
"@copilotkit/react-core": "1.52.1",
"@copilotkit/react-ui": "1.52.1",
"@copilotkit/runtime": "1.52.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely needs updating to w/e version fixes the other issues

Comment on lines +9 to +13
import { createA2UIMessageRenderer } from "@copilotkit/a2ui-renderer";
import { theme } from "@/lib/a2ui-theme.css";

const A2UIMessageRenderer = createA2UIMessageRenderer({ theme });
const activityRenderers = [A2UIMessageRenderer];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we need none of this code and it is instead hot-swappable. The default should be A2UI "just works" if your agent returns it. The middleware takes care of most of this, if we add that into runtime it'll just work by default.

The other end is the UI, if we make this the default (with a disable) then things become quite simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant