{"id":19489115,"url":"https://github.com/ai-engineer-foundation/agent-protocol-sdk-js","last_synced_at":"2025-04-25T18:33:00.009Z","repository":{"id":197500219,"uuid":"693353296","full_name":"AI-Engineer-Foundation/agent-protocol-sdk-js","owner":"AI-Engineer-Foundation","description":null,"archived":true,"fork":false,"pushed_at":"2023-11-27T22:10:50.000Z","size":49,"stargazers_count":2,"open_issues_count":4,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-25T06:43:59.077Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"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/AI-Engineer-Foundation.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}},"created_at":"2023-09-18T21:30:26.000Z","updated_at":"2024-04-22T16:16:56.000Z","dependencies_parsed_at":"2023-11-27T23:28:25.196Z","dependency_job_id":"dcb6ebfd-0d43-443d-bdfb-7d28bda1f71a","html_url":"https://github.com/AI-Engineer-Foundation/agent-protocol-sdk-js","commit_stats":null,"previous_names":["ai-engineer-foundation/agent-protocol-sdk-js"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AI-Engineer-Foundation%2Fagent-protocol-sdk-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AI-Engineer-Foundation%2Fagent-protocol-sdk-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AI-Engineer-Foundation%2Fagent-protocol-sdk-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AI-Engineer-Foundation%2Fagent-protocol-sdk-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AI-Engineer-Foundation","download_url":"https://codeload.github.com/AI-Engineer-Foundation/agent-protocol-sdk-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250872427,"owners_count":21500821,"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":[],"created_at":"2024-11-10T21:07:24.015Z","updated_at":"2025-04-25T18:32:59.706Z","avatar_url":"https://github.com/AI-Engineer-Foundation.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# THIS REPO HAS BEEN MERGED INTO THE MAIN REPO: https://github.com/AI-Engineer-Foundation/agent-protocol/tree/main/packages/sdk/js\n# Agent Communication Protocol - JavaScript/TypeScript SDK\n\nThis SDK implements the Agent Communication Protocol in JavaScript/TypeScript\nand allows you to easily wrap your agent in a webserver compatible with the\nprotocol - you only need to define an agent task handler.\n\n## Installation\n\n```bash\nnpm install agent-protocol\n```\n\nThen add the following code to your agent:\n\n### Typescript\n\n```typescript\nimport Agent, {\n  type StepHandler,\n  type StepInput,\n  type StepResult,\n  type TaskInput,\n} from 'agent-protocol'\n\nasync function taskHandler(taskInput: TaskInput | null): Promise\u003cStepHandler\u003e {\n  console.log(`task: ${taskInput}`)\n\n  async function stepHandler(stepInput: StepInput | null): Promise\u003cStepResult\u003e {\n    console.log(`step: ${stepInput}`)\n    return {\n      output: stepInput,\n    }\n  }\n\n  return stepHandler\n}\n\nAgent.handleTask(taskHandler).start()\n```\n\n## Docs\n\nYou can find more info and examples in the [docs](https://agentprotocol.ai/sdks/js).\n\n## Contributing\n```bash\ngit clone https://github.com/AI-Engineers-Foundation/agent-protocol-sdk-js\ncd ./agent-protocol-sdk-js\ngit submodule update --init\nnpm install\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-engineer-foundation%2Fagent-protocol-sdk-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fai-engineer-foundation%2Fagent-protocol-sdk-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-engineer-foundation%2Fagent-protocol-sdk-js/lists"}