Skip to content

Commit

Permalink
Merge pull request #506 from 3rd-Son/3rdsonbranch
Browse files Browse the repository at this point in the history
corrected imports in swarmauri_core
  • Loading branch information
cobycloud authored Sep 23, 2024
2 parents 33346d0 + 9913914 commit c7c8305
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
3 changes: 2 additions & 1 deletion pkgs/core/swarmauri_core/agents/IAgentConversation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from abc import ABC, abstractmethod
from swarmauri_core.conversations.IConversation import IConversation


class IAgentConversation(ABC):
pass
pass
7 changes: 4 additions & 3 deletions pkgs/core/swarmauri_core/agents/IAgentParser.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from abc import ABC, abstractmethod
from swarmauri_core.parsers.IParser import IParser
from swarmauri_core.parsers.IParser import IParser


class IAgentParser(ABC):

@property
@abstractmethod
def parser(self) -> IParser:
Expand All @@ -11,4 +12,4 @@ def parser(self) -> IParser:
@parser.setter
@abstractmethod
def parser(self) -> IParser:
pass
pass
7 changes: 5 additions & 2 deletions pkgs/core/swarmauri_core/chains/IChainDependencyResolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import Tuple, Dict, List, Optional
from swarmauri.chains.concrete.ChainStep import ChainStep


class IChainDependencyResolver(ABC):
@abstractmethod
def build_dependencies(self) -> List[ChainStep]:
Expand All @@ -18,7 +19,9 @@ def build_dependencies(self) -> List[ChainStep]:
pass

@abstractmethod
def resolve_dependencies(self, matrix: List[List[Optional[str]]], sequence_index: int) -> List[int]:
def resolve_dependencies(
self, matrix: List[List[Optional[str]]], sequence_index: int
) -> List[int]:
"""
Resolves the execution order based on the provided dependencies.
Expand All @@ -29,4 +32,4 @@ def resolve_dependencies(self, matrix: List[List[Optional[str]]], sequence_index
Returns:
List[int]: The resolved execution order.
"""
pass
pass
2 changes: 1 addition & 1 deletion pkgs/core/swarmauri_core/parsers/IParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class IParser(ABC):
def parse(self, data: Union[str, bytes, FilePath]) -> List[IDocument]:
"""
Public method to parse input data (either a str or a Message) into a list of Document instances.
This method leverages the abstract _parse_data method which must be
implemented by subclasses to define specific parsing logic.
"""
Expand Down
5 changes: 3 additions & 2 deletions pkgs/core/swarmauri_core/vectors/IVectorTransform.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from abc import ABC, abstractmethod
from .IVector import IVector
from IVector import IVector


class IVectorTransform(ABC):
"""
Expand Down Expand Up @@ -46,4 +47,4 @@ def project(self, plane_normal: IVector) -> IVector:
"""
Project a vector onto a plane defined by its normal vector.
"""
pass
pass

0 comments on commit c7c8305

Please sign in to comment.