Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeesha committed Dec 29, 2024
1 parent df11ba8 commit d736fb3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sdk-react/demo/TestPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ export function TestPage() {
const [pingCount, setPingCount] = useState(1);

const FormAgent = useAgent({
prompt: `Ping the server, and return the system status at the time of the ping. ${JSON.stringify(
{
pingCount,
}
)}`,
prompt: `Ping the server ${pingCount} times, and return the system status at the time of the ping.`,
run: basicRun,
});

Expand All @@ -42,6 +38,7 @@ export function TestPage() {
<BasicAgent.Trigger>Check system ({mode})</BasicAgent.Trigger>
<BasicAgent.Pane mode={mode} />
</div>

<h1>useAgent with form</h1>
<div style={{ display: "flex", flexDirection: "column", gap: "10px", maxWidth: "500px" }}>
<label htmlFor="pingCount">How many times should I ping the server?</label>
Expand Down

0 comments on commit d736fb3

Please sign in to comment.