Skip to content

Commit

Permalink
Include Sema4ai actions when refreshing the agent spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovidiu Rusu committed Oct 23, 2024
1 parent 04b7b49 commit b0b7d39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sema4ai/src/sema4ai_code/refresh_agent_spec_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from sema4ai_code.agents.list_actions_from_agent import ActionPackageInFilesystem

SEMA4AI = "sema4ai"
MYACTIONS = "myactions"


class ActionPackage(TypedDict, total=False):
Expand Down Expand Up @@ -48,7 +49,7 @@ def _update_agent_spec_with_actions(
"whitelist": "",
}
for action_package in action_packages_in_filesystem
if action_package.organization.replace(".", "").lower() != SEMA4AI
if action_package.organization.replace(".", "").lower() in [SEMA4AI, MYACTIONS]
]

missing = []
Expand Down

0 comments on commit b0b7d39

Please sign in to comment.