66from beeai_framework .backend import AssistantMessage , UserMessage
77from beeai_framework .memory .unconstrained_memory import UnconstrainedMemory
88from beeai_sdk .a2a .extensions import (
9+ AgentDetailContributor ,
10+ AgentDetailTool ,
911 LLMServiceExtensionServer ,
1012 LLMServiceExtensionSpec ,
1113 SecretDemand ,
@@ -65,6 +67,7 @@ async def extract_github_pat_secret(secrets: SecretsExtensionServer) -> str:
6567 else :
6668 return secrets .data .secret_fulfillments ["default" ].secret
6769
70+
6871def get_memory (context : RunContext ) -> UnconstrainedMemory :
6972 """Get or create session memory"""
7073 context_id = getattr (context , "context_id" , getattr (context , "session_id" , "default" ))
@@ -76,34 +79,25 @@ def get_memory(context: RunContext) -> UnconstrainedMemory:
7679 description = dedent (
7780 """\
7881 Creates well-structured, actionable GitHub issues from user descriptions of bugs or feature requests.
82+
7983 Uses project documentation and templates to ensure consistency and completeness.
8084 """
8185 ),
8286 detail = AgentDetail (
8387 default_input_modes = ["text" ],
8488 default_output_modes = ["text" ],
85- detail = AgentDetail (
86- interaction_mode = "multi-turn" ,
87- framework = "BeeAI" ,
88- ),
89+ interaction_mode = "multi-turn" ,
90+ framework = "BeeAI" ,
91+ author = AgentDetailContributor (name = "Matous Havlena" , email = "havlenam@ibm.com" ),
92+ tools = [AgentDetailTool (name = "Github" , description = "Github integration allows to browse and create issues in the repository." )],
93+ source_code_url = "https://github.com/i-am-bee/beeai-issue-creator" ,
94+ container_image_url = "ghcr.io/i-am-bee/beeai-issue-creator/beeai-issue-creator" ,
8995 skills = [
9096 AgentSkill (
9197 id = "create_github_issue" ,
9298 name = "Create GitHub Issue" ,
93- description = dedent (
94- """\
95- Creates well-structured, actionable GitHub issues from user descriptions of bugs or feature requests.
96- Uses project documentation and templates to ensure consistency and completeness.
97- """
98- ),
99+ description = "Create a GitHub issue" ,
99100 tags = ["GitHub" , "Issues" , "Bug Reports" , "Feature Requests" , "Documentation" ],
100- examples = [
101- "The login form crashes when I enter special characters in the password field" ,
102- "Add support for dark mode theme in the user interface" ,
103- "API returns 500 error when making concurrent requests to /users endpoint" ,
104- "Implement user authentication with OAuth2 integration" ,
105- "Memory leak occurs after running the application for several hours" ,
106- ],
107101 )
108102 ],
109103 ),
@@ -175,7 +169,6 @@ async def github_issue_creator(
175169 except Exception :
176170 pass
177171
178-
179172 parsed_form_data = forms [context .context_id ]
180173 if not parsed_form_data :
181174 raise ValueError ("No form data found" )
0 commit comments