Skip to content

Commit

Permalink
Add: tests and remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lausuarez02 committed Dec 28, 2024
1 parent d93eeb8 commit 79ef435
Show file tree
Hide file tree
Showing 10 changed files with 1,398 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
from typing import List, Optional
from pydantic import BaseModel, Field
from pydantic import BaseModel, Field, ConfigDict
from cdp_agentkit_core.actions.social.farcaster.action import FarcasterAction


class CastInput(BaseModel):
"""Input for casting to Farcaster."""

model_config = ConfigDict(extra="forbid")
text: str = Field(..., description="The text content to cast")
channel_id: Optional[str] = Field(None, description="Optional channel to post in")
embeds: Optional[List[str]] = Field(None, description="Optional list of URLs to embed")

class Config:
"""Pydantic config."""
extra = "forbid"


class CastAction(FarcasterAction):
"""Farcaster cast action."""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from typing import List, Optional
from pydantic import BaseModel, Field
from pydantic import BaseModel, Field, ConfigDict
from cdp_agentkit_core.actions.social.farcaster.action import FarcasterAction


class NotificationsInput(BaseModel):
"""Input for getting Farcaster notifications."""
model_config = ConfigDict(extra="forbid")

types: Optional[List[str]] = Field(
None,
Expand All @@ -15,10 +16,6 @@ class NotificationsInput(BaseModel):
description="The FID of the user to get notifications for. If not provided, uses the authenticated user's FID."
)

class Config:
"""Pydantic config."""
extra = "forbid"


class NotificationsAction(FarcasterAction):
"""Farcaster notifications action."""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
from pydantic import BaseModel, Field
from pydantic import BaseModel, Field, ConfigDict
from cdp_agentkit_core.actions.social.farcaster.action import FarcasterAction
from typing import Optional


class UserDetailsInput(BaseModel):
"""Input argument schema for Farcaster user details action."""
model_config = ConfigDict(extra="forbid")

fid: Optional[str] = Field(
None,
description="The FID (Farcaster ID) of the user to get details for. If not provided, uses the authenticated user's FID."
)

class Config:
"""Pydantic config."""
extra = "forbid"


class UserDetailsAction(FarcasterAction):
"""Farcaster user details action."""
Expand Down
Empty file.
Empty file.
Loading

0 comments on commit 79ef435

Please sign in to comment.