-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Agent Playground #41
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -5,7 +5,9 @@ export function Button({ className, ...props }: any) { | |||
<button | |||
className={clsx( | |||
"inline-flex items-center gap-2 justify-center rounded-md py-2 px-3 text-sm outline-offset-2 transition active:transition-none", | |||
"bg-zinc-600 font-semibold text-zinc-100 hover:bg-zinc-400 active:bg-zinc-800 active:text-zinc-100/70", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
// Can we skip the orient and decide phase to act right away? | ||
// Has the agent achieved "Intuitive Skill"? | ||
|
||
const resp = await ai.sendMessage(`SKIP PROMPT. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does SKIP PROMPT mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hahah, it's a known good prompt (similar to step-by-step) to instruct GPT to skip the high-level explanation.
import { useContext, useEffect, useRef, useState } from "react" | ||
import { type Terminal } from "xterm" | ||
|
||
import { WebContainer, type WebContainerProcess } from "@webcontainer/api" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should come back to review this file this once i can test the preview pane, which isn't working for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added comments
apps/web/src/pages/agent.tsx
Outdated
@@ -1,5 +1,5 @@ | |||
import { AgentManagerProvider } from "~core/providers/agent-manager" | |||
import { WebVMProvider } from "~core/providers/web-vm" | |||
import { AgentManagerProvider } from "~features/agent/agent-manager-provider" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we put agent and vm inside a demos
folder, so that the demos are namespaced and grouped together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
apps/web/src/pages/vm.tsx
Outdated
@@ -1,5 +1,5 @@ | |||
import Head from "next/head" | |||
import { WebVMProvider } from "~core/providers/web-vm" | |||
import { WebVMProvider } from "~features/web-vm/web-vm-provider" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could also name this folder demos
to be in sync with that
@@ -66,9 +69,18 @@ export const CodeBlock: FC<Props> = ({ language, value }) => { | |||
}, 2000) | |||
}) | |||
} | |||
const isDarkTheme = useMatchMedia("(prefers-color-scheme: dark)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preemptively approved, pending some small name changes!
This PR touches a bit on #40 but not entirely - I moved the route to
/agent
. The main idea is to be a place for window.ai dev to experiment with autonomous agent spawning <- this piece is being iterated on ATM.Also this PR freezes nextjs version to 13.2.4 due to: vercel/next.js#48593
Some other stuffs: