Skip to content

Commit

Permalink
mono - ExampleCommunityAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
cobycloud committed Dec 27, 2024
1 parent 75fbf5e commit 084ba93
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/v0.6.0_install-and-publish-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
sed -i "s|\(path = \"\..*/standards/swarmauri_standard\"\)|version = \"^${{ env.version }}\"|" "$package/pyproject.toml"
sed -i "s|\(path = \"\..*/standards/swm_example_plugin\"\)|version = \"^${{ env.version }}\"|" "$package/pyproject.toml"
sed -i "s|\(path = \"\..*/community/swarmauri_community\"\)|version = \"^${{ env.version }}\"|" "$package/pyproject.toml"
sed -i "s|\(path = \"\..*/community/swm_example_package\"\)|version = \"^${{ env.version }}\"|" "$package/pyproject.toml"
# Show updated pyproject.toml content
cat "$package/pyproject.toml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ log_cli_date_format = "%Y-%m-%d %H:%M:%S"
asyncio_default_fixture_loop_scope = "function"

[tool.poetry.plugins."swarmauri.agents"]
example_agent = "swm-example-community-package.agents:ExampleCommunityAgent"
example_agent = "swm-example-community-package:ExampleCommunityAgent"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from typing import Any, Optional, Dict, Literal
from swarmauri_base.agents.AgentBase import AgentBase
from swarmauri_base.conversations.ConversationBase import ConversationBase
from swarmauri_core.typing import SubclassUnion

class ExampleCommunityAgent(AgentBase):
conversation: SubclassUnion[ConversationBase]
type: Literal['ExampleCommunityAgent'] = 'ExampleCommunityAgent'

def exec(self,
input_str: Optional[str] = "",
llm_kwargs: Optional[Dict] = {}
) -> Any:

pass
3 changes: 2 additions & 1 deletion pkgs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ swarmauri_core = { path = "./core" }
swarmauri_base = { path = "./base" }
swarmauri = { path = "./swarmauri" }
swarmauri_standard = { path = "./standards/swarmauri_standard", extras=["full"] }
swarmauri_community = { path = "./community/swarmauri_community", extras=["full"] }
swm_example_package = { path = "./standards/swm_example_package" }
swarmauri_community = { path = "./community/swarmauri_community", extras=["full"] }
swm_example_community_package = { path = "./community/swm_example_package" }

[tool.poetry.dev-dependencies]
pytest = "^7.0"
Expand Down

0 comments on commit 084ba93

Please sign in to comment.