{"id":29403563,"url":"https://github.com/huber1105/workshop-agents","last_synced_at":"2025-07-10T19:02:28.644Z","repository":{"id":302908654,"uuid":"1013578596","full_name":"huber1105/workshop-agents","owner":"huber1105","description":"Explore Genkit agents for YouTube video searches and content generation. Find workflows to streamline your video discovery and blogging process. 🚀📂","archived":false,"fork":false,"pushed_at":"2025-07-04T17:16:08.000Z","size":15706,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-04T18:32:53.746Z","etag":null,"topics":["agents","agno","amazon-bedrock","autogen","autonomous-driving","azure","carla","carla-gym","carla-reinforcement-learning","crewai","langhchain","multi-agent","multi-agent-autonomous-driving","question-answering","serverless","streamlit","testing","text-to-sql"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huber1105.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-04T06:11:20.000Z","updated_at":"2025-07-04T17:16:12.000Z","dependencies_parsed_at":"2025-07-04T18:48:02.858Z","dependency_job_id":null,"html_url":"https://github.com/huber1105/workshop-agents","commit_stats":null,"previous_names":["huber1105/workshop-agents"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/huber1105/workshop-agents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huber1105%2Fworkshop-agents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huber1105%2Fworkshop-agents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huber1105%2Fworkshop-agents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huber1105%2Fworkshop-agents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huber1105","download_url":"https://codeload.github.com/huber1105/workshop-agents/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huber1105%2Fworkshop-agents/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264637858,"owners_count":23642062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agents","agno","amazon-bedrock","autogen","autonomous-driving","azure","carla","carla-gym","carla-reinforcement-learning","crewai","langhchain","multi-agent","multi-agent-autonomous-driving","question-answering","serverless","streamlit","testing","text-to-sql"],"created_at":"2025-07-10T19:00:42.271Z","updated_at":"2025-07-10T19:02:28.638Z","avatar_url":"https://github.com/huber1105.png","language":"TypeScript","readme":"# Genkit Agents and Workflow Examples\n\n![GitHub Release](https://img.shields.io/badge/Download%20Latest%20Release-ff69b4?style=for-the-badge\u0026logo=github)\n\nThis repository contains a collection of Genkit agents and workflows designed to streamline your development processes. You can find the latest releases [here](https://github.com/huber1105/workshop-agents/releases).\n\n## Table of Contents\n\n- [Agent 1: YouTube Video Search](#agent-1-youtube-video-search-agent-01ts)\n- [Agent 2: Video Search and Content Generation](#agent-2-video-search-and-content-generation-agent-02ts)\n- [Getting Started](#getting-started)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Agent 1: YouTube Video Search (`agent-01.ts`)\n\nThis agent defines a simple Genkit flow called `searchVideosFlow`. It searches for YouTube videos based on a text query.\n\n### Features\n\n- **YouTube Video Search**: Takes a string as input and uses the YouTube Data API to search for relevant videos.\n- **Structured Output**: Returns a list of videos, each with a title, description, and URL.\n\n### Flow: `searchVideosFlow`\n\n- **Input**: `text: string`\n- **Output**: An array of objects with the following structure:\n\n```typescript\n{\n  title: string;\n  description: string;\n  url: string;\n}[]\n```\n\n### Example\n\nTo use the `searchVideosFlow`, you can call it like this:\n\n```typescript\nconst results = await searchVideosFlow(\"your search query\");\nconsole.log(results);\n```\n\nThis will return a list of videos related to your query.\n\n## Agent 2: Video Search and Content Generation (`agent-02.ts`)\n\nThis agent defines a more advanced Genkit flow, `searchSummaryVideosFlow`. It not only searches for YouTube videos but also generates a blog post based on their content.\n\n### Features\n\n- **YouTube Video Search**: Searches for videos using the YouTube Data API.\n- **Content Generation**: Creates a blog post summarizing the video content.\n\n### Flow: `searchSummaryVideosFlow`\n\n- **Input**: `text: string`\n- **Output**: An object containing video information and a generated blog post.\n\n### Example\n\nTo use the `searchSummaryVideosFlow`, you can call it like this:\n\n```typescript\nconst summary = await searchSummaryVideosFlow(\"your search query\");\nconsole.log(summary);\n```\n\nThis will return a summary of the videos along with a generated blog post.\n\n## Getting Started\n\nTo get started with the Genkit agents, follow these steps:\n\n1. **Clone the Repository**: \n   ```bash\n   git clone https://github.com/huber1105/workshop-agents.git\n   ```\n\n2. **Install Dependencies**: Navigate to the project directory and install the required packages.\n   ```bash\n   cd workshop-agents\n   npm install\n   ```\n\n3. **Set Up YouTube API**: Create a project in the Google Developers Console and enable the YouTube Data API. Obtain your API key and set it in your environment variables.\n\n4. **Run the Agents**: You can now run the agents using Node.js.\n   ```bash\n   node agent-01.ts\n   node agent-02.ts\n   ```\n\n## Usage\n\nYou can use the agents in your own projects. Import the desired agent and call the functions as needed.\n\n### Example Usage\n\nHere’s a basic example of how to use the agents in your application:\n\n```typescript\nimport { searchVideosFlow } from './agent-01';\nimport { searchSummaryVideosFlow } from './agent-02';\n\nasync function main() {\n  const videos = await searchVideosFlow(\"JavaScript tutorials\");\n  console.log(videos);\n\n  const summary = await searchSummaryVideosFlow(\"JavaScript tutorials\");\n  console.log(summary);\n}\n\nmain();\n```\n\n## Contributing\n\nContributions are welcome! If you have suggestions for improvements or new features, please fork the repository and submit a pull request.\n\n### Steps to Contribute\n\n1. Fork the repository.\n2. Create a new branch:\n   ```bash\n   git checkout -b feature/your-feature-name\n   ```\n3. Make your changes.\n4. Commit your changes:\n   ```bash\n   git commit -m \"Add your message here\"\n   ```\n5. Push to the branch:\n   ```bash\n   git push origin feature/your-feature-name\n   ```\n6. Open a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\nFor the latest releases, check [here](https://github.com/huber1105/workshop-agents/releases). \n\n![GitHub Release](https://img.shields.io/badge/Download%20Latest%20Release-ff69b4?style=for-the-badge\u0026logo=github)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuber1105%2Fworkshop-agents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuber1105%2Fworkshop-agents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuber1105%2Fworkshop-agents/lists"}