Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
_construct
Method · 0.80
test_echo
Function · 0.80
test_dataclass_encoder
Function · 0.80
test_trie
Function · 0.80
test_shell_command
Function · 0.80
test_segment_data
Function · 0.80
test_segment_add
Function · 0.80
test_segment_validate
Function · 0.80
test_segment_join
Function · 0.80
test_segment_copy
Function · 0.80
test_message_add
Function · 0.80
test_message_getitem
Function · 0.80
Calls
no outgoing calls
Tested by
15
test_echo
Function · 0.64
test_dataclass_encoder
Function · 0.64
test_trie
Function · 0.64
test_shell_command
Function · 0.64
test_segment_data
Function · 0.64
test_segment_add
Function · 0.64
test_segment_validate
Function · 0.64
test_segment_join
Function · 0.64
test_segment_copy
Function · 0.64
test_message_add
Function · 0.64
test_message_getitem
Function · 0.64
test_message_validate
Function · 0.64