MCPcopy Create free account
hub / github.com/Virtual-Protocol/virtuals-python / FunctionConfig

Class FunctionConfig

src/virtuals_sdk/twitter_agent/agent.py:22–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21@dataclass
22class FunctionConfig:
23 method: str = "get"
24 url: str = ""
25 headers: Dict = None
26 payload: Dict = None
27 success_feedback: str = ""
28 error_feedback: str = ""
29 isMainLoop: bool = False
30 isReaction: bool = False
31 headersString: str = "{}" # Added field
32 payloadString: str = "{}" # Added field
33 platform: str = None
34
35 def __post_init__(self):
36 self.headers = self.headers or {}
37 self.payload = self.payload or {}
38
39 self.headersString = json.dumps(self.headers, indent=4)
40 self.payloadString = json.dumps(self.payload, indent=4)
41
42
43@dataclass

Callers 15

_create_post_castMethod · 0.85
_create_reply_to_castMethod · 0.85
_create_recastMethod · 0.85
_create_like_castMethod · 0.85
_create_unlike_castMethod · 0.85
_create_channelMethod · 0.85
_create_search_castsMethod · 0.85
_create_search_usersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected