Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ user
Function
user
tests/lib/threads/helpers.py:165–166 ·
view source on GitHub ↗
(text: str)
Source
from the content-addressed store, hash-verified
163
164
165
def
user(text: str) -> BetaMessageParam:
166
return
{
"role"
:
"user"
,
"content"
: text}
167
168
169
def
marked(text: str) -> BetaMessageParam:
Callers
15
test_runner_request_options_replace_the_threads_for_its_turns_only
Method · 0.85
test_streaming_runner_set_messages_params_adds_ahead_of_the_in_flight_reply
Method · 0.85
test_set_messages_params_leaves_the_tools_of_the_thread_to_a_later_runner
Method · 0.85
test_set_messages_params_with_some_fields_drops_the_others
Method · 0.85
test_runner_set_messages_params_replaces_the_history_mid_loop
Method · 0.85
test_fork_during_a_turn_has_the_history_that_set_messages_params_replaced_the_threads_with
Method · 0.85
test_runner_keeps_a_message_appended_to_the_thread_while_it_compacts
Method · 0.85
test_runner_keeps_a_message_appended_to_the_thread_while_it_compacts_after_the_final_turn
Method · 0.85
test_runner_sends_the_compaction_once_when_it_is_appended_to_the_thread_again
Method · 0.85
test_runner_compacts_a_thread_that_ends_in_a_partial_reply_without_that_reply
Method · 0.85
test_runner_takes_other_params_after_a_message_is_appended_to_the_thread_while_it_compacts
Method · 0.85
test_runner_adds_tool_results_ahead_of_messages_appended_to_the_thread_mid_loop
Method · 0.85
Calls
no outgoing calls
Tested by
15
test_runner_request_options_replace_the_threads_for_its_turns_only
Method · 0.68
test_streaming_runner_set_messages_params_adds_ahead_of_the_in_flight_reply
Method · 0.68
test_set_messages_params_leaves_the_tools_of_the_thread_to_a_later_runner
Method · 0.68
test_set_messages_params_with_some_fields_drops_the_others
Method · 0.68
test_runner_set_messages_params_replaces_the_history_mid_loop
Method · 0.68
test_fork_during_a_turn_has_the_history_that_set_messages_params_replaced_the_threads_with
Method · 0.68
test_runner_keeps_a_message_appended_to_the_thread_while_it_compacts
Method · 0.68
test_runner_keeps_a_message_appended_to_the_thread_while_it_compacts_after_the_final_turn
Method · 0.68
test_runner_sends_the_compaction_once_when_it_is_appended_to_the_thread_again
Method · 0.68
test_runner_compacts_a_thread_that_ends_in_a_partial_reply_without_that_reply
Method · 0.68
test_runner_takes_other_params_after_a_message_is_appended_to_the_thread_while_it_compacts
Method · 0.68
test_runner_adds_tool_results_ahead_of_messages_appended_to_the_thread_mid_loop
Method · 0.68