Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 846 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 846 Bytes

JavaScript Samples

The provided samples are built using Genkit using the Gemini API.

Agents

  • Movie Agent: Uses TMDB API to search for movie information and answer questions.
  • Coder Agent: Generates full code files as artifacts.

Testing the Agents

First, follow the instructions in the agent's README file, then run npx tsx ./cli.ts to start up a command-line client to talk to the agents. Example:

  1. Navigate to the samples/js directory:
    cd samples/js
  2. Run npm install:
    npm install
  3. Run an agent:
export GEMINI_API_KEY=<your_api_key>
npm run agents:coder

# in a separate terminal
npm run a2a:cli

NOTE: This is sample code and not production-quality libraries.