{"id":20365860,"url":"https://github.com/cycoresystems/agi","last_synced_at":"2025-10-29T03:51:22.357Z","repository":{"id":46674547,"uuid":"74252284","full_name":"CyCoreSystems/agi","owner":"CyCoreSystems","description":"Asterisk AGI library for Go (golang)","archived":false,"fork":false,"pushed_at":"2025-04-02T14:24:51.000Z","size":27,"stargazers_count":50,"open_issues_count":1,"forks_count":33,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T17:12:50.099Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CyCoreSystems.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":"2016-11-20T04:14:50.000Z","updated_at":"2025-04-02T14:24:56.000Z","dependencies_parsed_at":"2024-06-18T21:25:55.535Z","dependency_job_id":null,"html_url":"https://github.com/CyCoreSystems/agi","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyCoreSystems%2Fagi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyCoreSystems%2Fagi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyCoreSystems%2Fagi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyCoreSystems%2Fagi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyCoreSystems","download_url":"https://codeload.github.com/CyCoreSystems/agi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519473,"owners_count":21117757,"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-15T00:20:37.385Z","updated_at":"2025-10-29T03:51:17.324Z","avatar_url":"https://github.com/CyCoreSystems.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Asterisk AGI library for Go (golang)\n\n[![Build Status](https://travis-ci.org/CyCoreSystems/agi.png)](https://travis-ci.org/CyCoreSystems/agi) [![](https://godoc.org/github.com/CyCoreSystems/agi?status.svg)](http://godoc.org/github.com/CyCoreSystems/agi)\n\nThis is an Asterisk AGI interface library which may be used for both classical\nAGI, with a standalone executable, or FastAGI, with a TCP server.\n\n```go\npackage main\n\nimport \"github.com/CyCoreSystems/agi\"\n\nfunc main() {\n   a := agi.NewStdio()\n\n   a.Answer()\n   err := a.Set(\"MYVAR\", \"foo\")\n   if err != nil {\n      panic(\"failed to set variable MYVAR\")\n   }\n   a.Hangup()\n}\n```\n\n## Standalone AGI executable\n\nUse `agi.NewStdio()` to get an AGI reference when running a standalone\nexecutable.\n\nFor a TCP server, register a HandlerFunc to a TCP port:\n\n```go\npackage main\n\nimport \"github.com/CyCoreSystems/agi\"\n\nfunc main() {\n   agi.Listen(\":8080\", handler)\n}\n\nfunc handler(a *agi.AGI) {\n   defer a.Close()\n\n   a.Answer()\n   err := a.Set(\"MYVAR\", \"foo\")\n   if err != nil {\n      panic(\"failed to set variable MYVAR\")\n   }\n   a.Hangup()\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycoresystems%2Fagi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcycoresystems%2Fagi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycoresystems%2Fagi/lists"}