{"id":15177409,"url":"https://github.com/fx2y/reflexion-go","last_synced_at":"2026-02-26T23:34:10.956Z","repository":{"id":253385867,"uuid":"843309395","full_name":"fx2y/reflexion-go","owner":"fx2y","description":"[WIP] Reflexion Agent: A Go implementation of an advanced AI-powered tool-calling agent using Temporal workflows and instructor-ai. Demonstrates self-reflection and iterative improvement in AI responses.","archived":false,"fork":false,"pushed_at":"2024-08-16T10:23:15.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T09:43:55.605Z","etag":null,"topics":["ai","go","nlp","opentelemetry","reflexion","search","temporal","tool-calling","workflow"],"latest_commit_sha":null,"homepage":"","language":"Go","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/fx2y.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}},"created_at":"2024-08-16T08:27:07.000Z","updated_at":"2024-08-17T01:15:10.000Z","dependencies_parsed_at":"2024-08-16T11:55:31.154Z","dependency_job_id":null,"html_url":"https://github.com/fx2y/reflexion-go","commit_stats":null,"previous_names":["fx2y/reflexion-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fx2y/reflexion-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fx2y%2Freflexion-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fx2y%2Freflexion-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fx2y%2Freflexion-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fx2y%2Freflexion-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fx2y","download_url":"https://codeload.github.com/fx2y/reflexion-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fx2y%2Freflexion-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29877044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T22:37:10.609Z","status":"ssl_error","status_checked_at":"2026-02-26T22:37:09.019Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ai","go","nlp","opentelemetry","reflexion","search","temporal","tool-calling","workflow"],"created_at":"2024-09-27T14:22:03.456Z","updated_at":"2026-02-26T23:34:10.938Z","avatar_url":"https://github.com/fx2y.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reflexion Agent\n\n## Overview\n\nReflexion Agent is a powerful tool-calling agent implemented using the Temporal Go SDK and instructor-ai/instructor-go. It demonstrates an advanced AI-powered workflow that combines initial response generation, self-reflection, and information retrieval to provide comprehensive and accurate answers to user queries.\n\n## Features\n\n- Implements the Reflexion architecture for improved AI responses\n- Utilizes Temporal workflows for robust and scalable execution\n- Integrates instructor-ai for AI-powered decision making\n- Includes a mock search service for demonstration purposes\n- Implements OpenTelemetry tracing for observability\n\n## Implementation Details\n\nThe Reflexion Agent is implemented as a Temporal workflow with three main activities:\n\n1. Initial Responder: Generates an initial answer, reflection, and search query.\n2. Search: Performs a search based on the generated query.\n3. Revisor: Revises the initial answer based on search results.\n\nThe workflow orchestrates these activities to produce a final, refined answer to the user's question.\n\n## Configuration\n\n- Update the `instructor.NewClient(\"your-api-key\")` in `main.go` with your actual API key.\n- Modify the `MockSearchService` in `mock_search.go` to integrate with a real search service if needed.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffx2y%2Freflexion-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffx2y%2Freflexion-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffx2y%2Freflexion-go/lists"}