Skip to content

Commit

Permalink
feat: don't require tags to be specified for tool creation (#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahwooders authored Oct 1, 2024
1 parent f617fb7 commit 96b9960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion letta/schemas/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def from_crewai(cls, crewai_tool: "CrewAIBaseTool") -> "Tool":

class ToolCreate(BaseTool):
name: Optional[str] = Field(None, description="The name of the function (auto-generated from source_code if not provided).")
tags: List[str] = Field(..., description="Metadata tags.")
tags: List[str] = Field([], description="Metadata tags.")
source_code: str = Field(..., description="The source code of the function.")
json_schema: Optional[Dict] = Field(
None, description="The JSON schema of the function (auto-generated from source_code if not provided)"
Expand Down

0 comments on commit 96b9960

Please sign in to comment.