Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,16 @@ Adding tools is easy once you understand the project structure. A few things nee
- The tools that are exported from this file should be listed in the tool's config json.
4. Manually test your tool integration by running `agentstack tools add <your_tool>` and ensure it behaves as expected.

## Before creating your PR
Be sure that you are opening a PR using a branch other than `main` on your fork. This enables us
to pull your branch and make modifications to the PR with your permission that may be helpful.

### Formatting
AgentStack uses Ruff formatter for consistent code formatting. To format your code, run:
```bash
pip install ruff
ruff format .
```

## Tests
HAHAHAHAHAHAHA good one
49 changes: 27 additions & 22 deletions agentstack/cli/agentstack_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,22 @@


class ProjectMetadata:
def __init__(self,
project_name: str = None,
project_slug: str = None,
description: str = "",
author_name: str = "",
version: str = "",
license: str = "",
year: int = datetime.now().year,
template: str = "none",
template_version: str = "0",
):
def __init__(
self,
project_name: str = None,
project_slug: str = None,
description: str = "",
author_name: str = "",
version: str = "",
license: str = "",
year: int = datetime.now().year,
template: str = "none",
template_version: str = "0",
):
self.project_name = clean_input(project_name) if project_name else "myagent"
self.project_slug = clean_input(project_slug) if project_slug else self.project_name
self.project_slug = (
clean_input(project_slug) if project_slug else self.project_name
)
self.description = description
self.author_name = author_name
self.version = version
Expand Down Expand Up @@ -76,10 +79,11 @@ def to_json(self):


class FrameworkData:
def __init__(self,
# name: Optional[Literal["crewai"]] = None
name: str = None # TODO: better framework handling, Literal or Enum
):
def __init__(
self,
# name: Optional[Literal["crewai"]] = None
name: str = None, # TODO: better framework handling, Literal or Enum
):
self.name = name

def to_dict(self):
Expand All @@ -92,12 +96,13 @@ def to_json(self):


class CookiecutterData:
def __init__(self,
project_metadata: ProjectMetadata,
structure: ProjectStructure,
# framework: Literal["crewai"],
framework: str,
):
def __init__(
self,
project_metadata: ProjectMetadata,
structure: ProjectStructure,
# framework: Literal["crewai"],
framework: str,
):
self.project_metadata = project_metadata
self.framework = framework
self.structure = structure
Expand Down
Loading
Loading