Skip to content

Commit 8824668

Browse files
committed
chore: improving agent metadata
Signed-off-by: Tomas Weiss <tomas.weiss2@gmail.com>
1 parent f092bba commit 8824668

File tree

4 files changed

+17
-24
lines changed

4 files changed

+17
-24
lines changed

.github/workflows/build-agent.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ jobs:
4848
4949
- name: Build and Push
5050
run: |
51-
beeai build ./ --tag ghcr.io/${{ github.repository }}/my-agent:${{ steps.extract_version.outputs.version }} --no-import --multi-platform --push
51+
beeai build ./ --tag ghcr.io/${{ github.repository }}/beeai-issue-creator:${{ steps.extract_version.outputs.version }} --no-import --multi-platform --push

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies = [
1313
"mcp>=1.0.0",
1414
"python-dotenv>=1.0.0",
1515
"openinference-instrumentation-beeai>=0.1.10",
16-
"beeai-sdk>=0.3.5-rc4",
16+
"beeai-sdk>=0.3.5",
1717
"pydantic>=2.11.9",
1818
]
1919

src/agents/server.py

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from beeai_framework.backend import AssistantMessage, UserMessage
77
from beeai_framework.memory.unconstrained_memory import UnconstrainedMemory
88
from 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+
6871
def 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")

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)