{"id":27018975,"url":"https://github.com/beamlit/template-langchain-ts","last_synced_at":"2025-04-04T17:17:59.237Z","repository":{"id":285900538,"uuid":"959239802","full_name":"beamlit/template-langchain-ts","owner":"beamlit","description":"A production-ready TypeScript template for building AI agents using LangChain in Blaxel.","archived":false,"fork":false,"pushed_at":"2025-04-03T08:51:31.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T09:26:30.749Z","etag":null,"topics":["agent","blaxel","framework","langchain","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beamlit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-04-02T13:26:54.000Z","updated_at":"2025-04-03T08:51:35.000Z","dependencies_parsed_at":"2025-04-03T09:36:37.744Z","dependency_job_id":null,"html_url":"https://github.com/beamlit/template-langchain-ts","commit_stats":null,"previous_names":["beamlit/template-langchain-ts"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beamlit%2Ftemplate-langchain-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beamlit%2Ftemplate-langchain-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beamlit%2Ftemplate-langchain-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beamlit%2Ftemplate-langchain-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beamlit","download_url":"https://codeload.github.com/beamlit/template-langchain-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217221,"owners_count":20903009,"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":["agent","blaxel","framework","langchain","typescript"],"created_at":"2025-04-04T17:17:58.522Z","updated_at":"2025-04-04T17:17:59.223Z","avatar_url":"https://github.com/beamlit.png","language":"TypeScript","readme":"# Blaxel LangChain Agent\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://blaxel.ai/logo.png\" alt=\"Blaxel\"/\u003e\n\u003c/p\u003e\n\nA template implementation of a conversational agent using LangChain and GPT-4. This agent demonstrates the power of LangChain for building interactive AI agents with tool integration capabilities.\n\n## Features\n\n- Interactive conversational interface\n- Tool integration support (including weather and search capabilities)\n- Streaming responses for real-time interaction\n- Built on LangChain for efficient agent orchestration\n- Easy deployment and integration with Blaxel platform\n\n## Prerequisites\n\n- **Node.js:** v18 or later.\n- **[Blaxel CLI](https://docs.blaxel.ai/Get-started):** Ensure you have the Blaxel CLI installed. If not, install it globally:\n  ```bash\n  curl -fsSL https://raw.githubusercontent.com/beamlit/toolkit/main/install.sh | BINDIR=$HOME/.local/bin sh\n  ```\n- **Blaxel login:** Login to Blaxel platform\n  ```bash\n  bl login YOUR-WORKSPACE\n  ```\n\n## Installation\n\n**Clone the repository and install dependencies:**\n\n```bash\ngit clone https://github.com/beamlit/template-langchain-ts.git\ncd template-langchain-ts\nuv sync\n```\n\n## Running the Server Locally\n\nStart the development server with hot reloading:\n\n```bash\nbl serve --hotreload\n```\n\n_Note:_ This command starts the server and enables hot reload so that changes to the source code are automatically reflected.\n\n## Testing your agent\n\nYou can test your agent using the chat interface:\n\n```bash\nbl chat --local blaxel-agent\n```\n\nOr run it directly with specific input:\n\n```bash\nbl run agent blaxel-agent --local --data '{\"input\": \"What is the weather in Paris?\"}'\n```\n\n## Deploying to Blaxel\n\nWhen you are ready to deploy your application:\n\n```bash\nbl deploy\n```\n\nThis command uses your code and the configuration files under the `.blaxel` directory to deploy your application.\n\n## Project Structure\n\n- **src/index.ts** - Application entry point\n- **src/agent.ts** - Core agent implementation with LangChain integration\n- **blaxel.toml** - Blaxel deployment configuration\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeamlit%2Ftemplate-langchain-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeamlit%2Ftemplate-langchain-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeamlit%2Ftemplate-langchain-ts/lists"}