Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.06 KB

File metadata and controls

28 lines (17 loc) · 1.06 KB

Agentic Chat

What This Demo Shows

The simplest CopilotKit surface: a plain agentic chat backed by a LangGraph (Python) agent.

  • Natural Conversation: Chat with your Copilot in a familiar chat interface
  • Streaming Responses: Assistant messages stream in token-by-token via AG-UI
  • Suggestion Chips: A starter suggestion is rendered as a quick-action chip

How to Interact

Click the suggestion chip, or type your own prompt. For example:

  • "Write a short sonnet about AI"
  • "Explain the difference between an LLM and an agent"
  • "Give me three ideas for a weekend project"

Technical Details

ProviderCopilotKit wires the page to the runtime:

  • runtimeUrl="/api/copilotkit" points at the Next.js route that proxies to the agent
  • agent="agentic_chat" selects the LangGraph agent defined in langgraph.json

Chat surfaceCopilotChat renders the full chat UI with input, message list, and streaming.

SuggestionsuseConfigureSuggestions registers a static suggestion that appears as a clickable chip below the chat input.