MCPcopy
hub / github.com/nonebot/nonebot2 / text

Method text

tests/utils.py:38–39  ·  view source on GitHub ↗
(cls, text: str)

Source from the content-addressed store, hash-verified

36
37 @classmethod
38 def text(cls, text: str):
39 return cls("text", {"text": text})
40
41 @staticmethod
42 def image(url: str):

Callers 15

_constructMethod · 0.80
test_echoFunction · 0.80
test_dataclass_encoderFunction · 0.80
test_trieFunction · 0.80
test_shell_commandFunction · 0.80
test_segment_dataFunction · 0.80
test_segment_addFunction · 0.80
test_segment_validateFunction · 0.80
test_segment_joinFunction · 0.80
test_segment_copyFunction · 0.80
test_message_addFunction · 0.80
test_message_getitemFunction · 0.80

Calls

no outgoing calls

Tested by 15

test_echoFunction · 0.64
test_dataclass_encoderFunction · 0.64
test_trieFunction · 0.64
test_shell_commandFunction · 0.64
test_segment_dataFunction · 0.64
test_segment_addFunction · 0.64
test_segment_validateFunction · 0.64
test_segment_joinFunction · 0.64
test_segment_copyFunction · 0.64
test_message_addFunction · 0.64
test_message_getitemFunction · 0.64
test_message_validateFunction · 0.64