Skip to content

Commit b5025af

Browse files
committed
chore: update basic setup & readme
Signed-off-by: Tomas Weiss <tomas.weiss2@gmail.com>
1 parent 5aa8e18 commit b5025af

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
A multi-agent system for creating well-structured GitHub issues using the [BeeAI Framework](https://github.com/i-am-bee/beeai-framework). This system coordinates between specialized agents to draft issues, check for duplicates, and create final GitHub issues with customizable templates. The system is consumable via the [Agent Stack](https://github.com/i-am-bee/agentstack) (UI and CLI) through the A2A protocol.
1515

1616
✅ Multi-agent workflow
17-
🔄 Real-time trajectory tracking
17+
🔄 Real-time trajectory tracking
1818
📝 Customizable issue templates
1919

2020
## What is GitHub Issue Creator?
@@ -70,6 +70,21 @@ uv run server
7070

7171
The server will start on `http://127.0.0.1:8000` and register the GitHub Issue Creator agent that coordinates the complete workflow.
7272

73+
### Running in Agent Stack
74+
75+
You can also easily start the agent in [Agent Stack](https://agentstack.beeai.dev/).
76+
77+
```bash
78+
# Install the GH issue creator
79+
agentstack add ghcr.io/i-am-bee/github-issue-creator/github-issue-creator
80+
81+
# Setup the repo
82+
agentstack env add "GitHub Issue Creator" GITHUB_REPOSITORY=username/reponame
83+
84+
# Setup the PAT
85+
agentstack env add "GitHub Issue Creator" GITHUB_PAT=github_pat_XXX
86+
```
87+
7388
## Security Considerations
7489

7590
> [!WARNING]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "github-issue-creator"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
readme = "README.md"
55
authors = [
66
{name = "Matous Havlena", email = "matous.havlena@ibm.com"}

src/github_issue_creator/utils/config.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1+
import os
2+
from beeai_framework.backend import ChatModel
13
from dotenv import load_dotenv
4+
25
from beeai_framework.adapters.agentstack.backend.chat import AgentStackChatModel
36

47
load_dotenv()
58

6-
llm = AgentStackChatModel(preferred_models=["openai:gpt-4o"])
9+
10+
if os.getenv("API_KEY") is not None:
11+
print("Using API key from environment variable")
12+
model = os.getenv("MODEL", "openai:gpt-5-mini")
13+
llm = ChatModel.from_name(model, {"api_key": os.getenv("API_KEY")})
14+
else:
15+
print("Using LLM from Agent Stack")
16+
model = os.getenv("MODEL", "openai:gpt-4o")
17+
llm = AgentStackChatModel(preferred_models=["openai:gpt-4o"])
718

819
# Import after load_dotenv to ensure env vars are loaded
920
from github_issue_creator.tools.session_manager import SessionManager

0 commit comments

Comments
 (0)