{pkgJson.version}
{message}
} ``` The final state of `SimpleAgentEffect` look like this. ```tsx import React, { useState, useEffect } from "react"; import { Prompt } from "@upstreet/agents"; const SimpleGreetingAgent = () => { const [message, setMessage] = useState("Initializing..."); useEffect(() => { const greet = async () => { const simulatedAgentResponse = "Hello! I'm here to assist you."; setMessage(simulatedAgentResponse); }; greet(); // Call the simulated greeting }, []); return ( <>{message}
} > ); }; export default SimpleGreetingAgent; ``` ### Step 4: Import `SimpleAgentEffect` in the `Agent` Components ```tsx export default function MyAgent() { return (Your current name is: {name}