Maintainers
Pricing
Enterprise
More
More
Documentation
Try Live
Rankings
Install
Blog
Docs7
Ask
New
Add Docs
Hello World
https://github.com/bennyyu886/hello_world
Admin
A starter project featuring Python and JavaScript agents, designed to demonstrate agent
...
Tokens:
645
Snippets:
10
Trust Score:
1.7
Update:
1 year ago
Context
Chat
Benchmark
Latest
Show doc for...
Code
Info
Show Results
Tokens:
Raw
Copy
Link
Tokens:
Raw
Copy
Link
### Install User Interface Dependencies Source: https://github.com/bennyyu886/hello_world/blob/main/README.md Navigates to the UI directory and installs its required dependencies using pnpm, preparing the frontend environment. ```Shell cd ./ui pnpm i ``` -------------------------------- ### Install Python Agent Dependencies Source: https://github.com/bennyyu886/hello_world/blob/main/README.md Navigates to the Python agent directory and installs its required dependencies using Poetry, preparing the environment for agent execution. ```Shell cd agent-py poetry install ``` -------------------------------- ### Install JavaScript Agent Dependencies Source: https://github.com/bennyyu886/hello_world/blob/main/README.md Navigates to the JavaScript agent directory and installs its required dependencies using pnpm, setting up the environment for the JS agent. ```Shell cd agent-js pnpm install ``` -------------------------------- ### Start User Interface Development Server Source: https://github.com/bennyyu886/hello_world/blob/main/README.md Launches the user interface client in development mode, making it accessible via a web browser. ```Shell pnpm run dev ``` -------------------------------- ### Run Python Agent Demo Source: https://github.com/bennyyu886/hello_world/blob/main/README.md Executes the Python agent's demonstration script using Poetry, starting the agent service. ```Shell poetry run demo ``` -------------------------------- ### Run Next.js Development Server Source: https://github.com/bennyyu886/hello_world/blob/main/ui/README.md Commands to start the local development server for a Next.js application. The server will typically run on port 3000, accessible via http://localhost:3000 in your browser. ```bash npm run dev # or yarn dev # or pnpm dev # or bun dev ``` -------------------------------- ### Start LangGraph Server for JavaScript Agent Source: https://github.com/bennyyu886/hello_world/blob/main/README.md Initiates the LangGraph server for the JavaScript agent, making it available for connections on `localhost:8123`. ```Shell npx @langchain/langgraph-cli dev --host localhost --port 8123 ``` -------------------------------- ### Connect Copilot Cloud Tunnel to LangGraph Server Source: https://github.com/bennyyu886/hello_world/blob/main/README.md Establishes a connection from the Copilot Cloud Tunnel to the running LangGraph server, facilitating communication with the JavaScript agent. ```Shell npx copilotkit@latest dev --port 8123 ``` -------------------------------- ### Configure OpenAI API Key for Agents and UI Source: https://github.com/bennyyu886/hello_world/blob/main/README.md Creates a .env file in the agent (Python or JS) or UI directory to store the OpenAI API key. This key is essential for the agents and UI to interact with OpenAI services, specifically requiring support for gpt-4o. ```Shell OPENAI_API_KEY=... ``` -------------------------------- ### Configure UI for LangGraph JS Agent Integration Source: https://github.com/bennyyu886/hello_world/blob/main/README.md Modifies `app/api/copilotkit/route.ts` to uncomment and enable the `langGraphPlatformEndpoint` configuration. This allows the UI to connect to a locally running LangGraph JS agent, requiring the removal of other remote endpoint configurations. ```TypeScript // Uncomment this if you want to use LangGraph JS, make sure to // remove the remote action url below too. // // langGraphPlatformEndpoint({ // deploymentUrl: "http://localhost:8123", // langsmithApiKey: process.env.LANGSMITH_API_KEY || "", // only used in LangGraph Platform deployments // agents: [{ // name: 'sample_agent', // description: 'A helpful LLM agent.' // }] // }), ```