Skip to content

Commit 273bd4f

Browse files
pin to dev workspace
1 parent ce801f1 commit 273bd4f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

code/tools.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@
1111
token=os.getenv('TRELLO_TOKEN')
1212
)
1313

14+
# this line is to pin the agent to this specific development ennvironment (workspace in Trello)
15+
organization = [org for org in client.list_organizations() if org.name == 'devgenai'][0]
16+
1417
@tool
1518
def list_boards() -> str:
16-
"""Get a list of all accessible Trello boards. This function should be called first to get the board ID
19+
"""Get a list of all accessible Trello boards within the devgenai organization. This function should be called first to get the board ID
1720
before using select_board().
1821
1922
Returns:
2023
str: A JSON string containing board details including id, name, and description.
2124
"""
22-
boards = client.list_boards()
25+
boards = organization.all_boards()
2326
board_list = [{
2427
'id': b.id,
2528
'name': b.name,

0 commit comments

Comments
 (0)