MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,482 in github.com/crewAIInc/crewAI

Methodtest_analyze_video_file
Test Gemini can analyze a video file.
lib/crewai/tests/llms/test_multimodal_integration.py:367
Functiontest_and_branch_inside_or_does_not_race
()
lib/crewai/tests/test_flow.py:1637
Functiontest_and_condition_node_metadata
Test that AND condition nodes have correct metadata.
lib/crewai/tests/test_flow_visualization.py:318
Methodtest_and_condition_triggered_by_last_method
AND condition listener should have triggered_by_event_id pointing to the last completing method.
lib/crewai/tests/events/test_event_ordering.py:1131
Functiontest_and_join_waits_for_parallel_branches
Test that sibling branches complete before a joined listener runs. Branches triggered by the same parent execute in parallel for efficiency.
lib/crewai/tests/test_flow.py:1513
Functiontest_and_or_merge_parity
()
lib/crewai/tests/test_flow_from_definition.py:575
Functiontest_anonymous_grant_omits_saved_organization_and_rejects_wrong_tier
(collector)
lib/crewai/tests/telemetry/test_session_trace_export.py:502
Methodtest_answer_from_history_uses_configured_llm_and_appends_reply
(self)
lib/crewai/tests/test_flow_conversation.py:326
Functiontest_answer_retries_once_then_reports_why_there_was_none
()
lib/devtools/tests/test_agents_md_eval.py:285
Functiontest_anthropic_acall_returns_dict_tool_use_blocks_as_tool_calls
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:1749
Functiontest_anthropic_agent_kickoff_structured_output_with_tools
Test that agent kickoff returns structured output after using tools. This tests post-tool-call structured output handling for Anthropic model
lib/crewai/tests/llms/anthropic/test_anthropic.py:1116
Functiontest_anthropic_agent_kickoff_structured_output_without_tools
Test that agent kickoff returns structured output without tools. This tests native structured output handling for Anthropic models.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1080
Methodtest_anthropic_agent_kickoff_with_tools_mocked
Test Anthropic agent kickoff with mocked LLM call.
lib/crewai/tests/agents/test_native_tool_calling.py:490
Methodtest_anthropic_agent_with_native_tool_calling
Test Anthropic agent can use native tool calling.
lib/crewai/tests/agents/test_native_tool_calling.py:464
Functiontest_anthropic_async_basic_call
Test basic async call with Anthropic.
lib/crewai/tests/llms/anthropic/test_anthropic_async.py:14
Functiontest_anthropic_async_conversation
Test async call with conversation history.
lib/crewai/tests/llms/anthropic/test_anthropic_async.py:69
Functiontest_anthropic_async_multiple_calls
Test making multiple async calls in sequence.
lib/crewai/tests/llms/anthropic/test_anthropic_async.py:102
Functiontest_anthropic_async_stop_sequences
Test async call with stop sequences.
lib/crewai/tests/llms/anthropic/test_anthropic_async.py:87
Functiontest_anthropic_async_streaming_returns_dict_tool_use_blocks_as_tool_calls
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:1786
Functiontest_anthropic_async_streaming_tool_calls_emit_call_completed_event
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:1838
Functiontest_anthropic_async_with_max_tokens
Test async call with max_tokens parameter.
lib/crewai/tests/llms/anthropic/test_anthropic_async.py:39
Functiontest_anthropic_async_with_response_format_json
Test async call with JSON response format.
lib/crewai/tests/llms/anthropic/test_anthropic_async.py:129
Functiontest_anthropic_async_with_response_format_none
Test async call with response_format set to None.
lib/crewai/tests/llms/anthropic/test_anthropic_async.py:117
Functiontest_anthropic_async_with_response_model
Test async call with Pydantic response_model for structured output.
lib/crewai/tests/llms/anthropic/test_anthropic_async.py:149
Functiontest_anthropic_async_with_system_message
Test async call with system message.
lib/crewai/tests/llms/anthropic/test_anthropic_async.py:52
Functiontest_anthropic_async_with_temperature
Test async call with temperature parameter.
lib/crewai/tests/llms/anthropic/test_anthropic_async.py:27
Functiontest_anthropic_async_with_tools
Test async call with tools.
lib/crewai/tests/llms/anthropic/test_anthropic_async.py:165
Functiontest_anthropic_cache_creation_tokens_extraction
Test that cache_creation_input_tokens are extracted from Anthropic responses.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1934
Functiontest_anthropic_cached_prompt_tokens
Test that Anthropic correctly extracts and tracks cached_prompt_tokens from cache_read_input_tokens. Uses cache_control to enable prompt cach
lib/crewai/tests/llms/anthropic/test_anthropic.py:1158
Functiontest_anthropic_cached_prompt_tokens_with_tools
Test that Anthropic correctly tracks cached_prompt_tokens when tools are used. The large system prompt should be cached across tool-calling r
lib/crewai/tests/llms/anthropic/test_anthropic.py:1221
Methodtest_anthropic_call_with_interceptor_tracks_requests
Test that interceptor tracks Anthropic API requests.
lib/crewai/tests/llms/hooks/test_anthropic_interceptor.py:68
Functiontest_anthropic_client_params_empty_dict
Test that client_params={} works correctly (empty additional parameters)
lib/crewai/tests/llms/anthropic/test_anthropic.py:498
Functiontest_anthropic_client_params_none
Test that client_params=None works correctly (no additional parameters)
lib/crewai/tests/llms/anthropic/test_anthropic.py:467
Functiontest_anthropic_client_params_override_defaults
Test that client_params can override default client parameters
lib/crewai/tests/llms/anthropic/test_anthropic.py:436
Functiontest_anthropic_client_params_setup
Test that client_params are properly merged with default client parameters
lib/crewai/tests/llms/anthropic/test_anthropic.py:402
Functiontest_anthropic_completion_call
Test that AnthropicCompletion call method works
lib/crewai/tests/llms/anthropic/test_anthropic.py:214
Functiontest_anthropic_completion_call_arguments
Test that AnthropicCompletion.call is invoked with correct arguments
lib/crewai/tests/llms/anthropic/test_anthropic.py:255
Functiontest_anthropic_completion_called_during_crew_execution
Test that AnthropicCompletion.call is actually invoked when running a crew
lib/crewai/tests/llms/anthropic/test_anthropic.py:227
Functiontest_anthropic_completion_defaults_to_sonnet_4_6
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:114
Functiontest_anthropic_completion_initialization_parameters
Test that AnthropicCompletion is initialized with correct parameters
lib/crewai/tests/llms/anthropic/test_anthropic.py:94
Functiontest_anthropic_completion_is_used_when_anthropic_provider
Test that AnthropicCompletion from completion.py is used when LLM uses provider 'anthropic'
lib/crewai/tests/llms/anthropic/test_anthropic.py:25
Functiontest_anthropic_completion_is_used_when_claude_provider
Test that AnthropicCompletion is used when provider is 'claude'
lib/crewai/tests/llms/anthropic/test_anthropic.py:36
Functiontest_anthropic_completion_module_is_imported
Test that the completion module is properly imported when using Anthropic provider
lib/crewai/tests/llms/anthropic/test_anthropic.py:50
Functiontest_anthropic_completion_with_tools
Test that AnthropicCompletion.call is invoked with tools when agent has tools
lib/crewai/tests/llms/anthropic/test_anthropic.py:337
Methodtest_anthropic_constraints
Test Anthropic constraints are properly defined.
lib/crewai-files/tests/processing/test_constraints.py:145
Functiontest_anthropic_context_window_size
Test that Anthropic models return correct context window sizes
lib/crewai/tests/llms/anthropic/test_anthropic.py:544
Functiontest_anthropic_defaults_max_tokens_to_model_limit
Native Anthropic used to default to 4096, which truncates large tool calls.
lib/crewai/tests/llms/anthropic/test_anthropic.py:164
Functiontest_anthropic_dict_tool_use_blocks_execute_available_function
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:1855
Functiontest_anthropic_dict_tool_use_blocks_require_id
Incomplete dict-shaped tool_use blocks are not valid tool calls.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1705
Functiontest_anthropic_dict_tool_use_blocks_work_in_follow_up_conversation
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:1873
Functiontest_anthropic_environment_variable_api_key
Test that Anthropic API key is properly loaded from environment
lib/crewai/tests/llms/anthropic/test_anthropic.py:617
Functiontest_anthropic_function_calling
Test that function calling is properly handled
lib/crewai/tests/llms/anthropic/test_anthropic.py:920
Functiontest_anthropic_gets_temperature_or_top_p_not_both
()
lib/crewai/tests/utilities/test_create_llm_like.py:126
Functiontest_anthropic_honors_explicit_max_tokens
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:182
Functiontest_anthropic_input_token_count_forwards_completion_payload
Counting formats system messages and tools like a completion request.
lib/crewai/tests/llms/anthropic/test_anthropic.py:656
Functiontest_anthropic_input_token_count_includes_files_api_beta
File-backed messages use the same beta header as generation.
lib/crewai/tests/llms/anthropic/test_anthropic.py:690
Functiontest_anthropic_input_token_count_live
Anthropic returns a positive input-token count for a real request.
lib/crewai/tests/llms/anthropic/test_anthropic.py:772
Functiontest_anthropic_input_token_count_uses_character_fallback
Count endpoint errors fall back to the character estimate.
lib/crewai/tests/llms/anthropic/test_anthropic.py:717
Functiontest_anthropic_input_token_count_uses_files_beta_for_structured_output_fallback
Structured output fallback retains the Files API beta header.
lib/crewai/tests/llms/anthropic/test_anthropic.py:727
Methodtest_anthropic_llm_accepts_interceptor
Test that Anthropic LLM accepts interceptor parameter.
lib/crewai/tests/llms/hooks/test_anthropic_interceptor.py:59
Functiontest_anthropic_message_formatting
Test Anthropic message formatting with fixtures.
lib/crewai/tests/test_llm.py:572
Functiontest_anthropic_message_formatting
Test that messages are properly formatted for Anthropic API
lib/crewai/tests/llms/anthropic/test_anthropic.py:554
Functiontest_anthropic_message_formatting_edge_cases
Test edge cases for Anthropic message formatting.
lib/crewai/tests/test_llm.py:541
Functiontest_anthropic_missing_cache_fields_default_to_zero
Test that missing cache fields default to zero.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1957
Methodtest_anthropic_mock_structured_response
Test parsing Anthropic structured response (same format).
lib/crewai/tests/utilities/test_structured_planning.py:530
Functiontest_anthropic_model_detection
Test Anthropic model detection with various formats.
lib/crewai/tests/test_llm.py:557
Functiontest_anthropic_model_detection
Test that various Anthropic model formats are properly detected
lib/crewai/tests/llms/anthropic/test_anthropic.py:520
Functiontest_anthropic_object_tool_use_blocks_require_id
Incomplete object-shaped tool_use blocks are not valid tool calls.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1722
Methodtest_anthropic_parallel_native_tool_calling_test_agent_kickoff
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:542
Methodtest_anthropic_parallel_native_tool_calling_test_crew
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:519
Methodtest_anthropic_provider_has_image_block_converter
(self)
lib/crewai/tests/agents/test_agent_executor.py:3412
Functiontest_anthropic_raises_error_when_model_not_supported
Test that AnthropicCompletion raises ValueError when model not supported
lib/crewai/tests/llms/anthropic/test_anthropic.py:380
Methodtest_anthropic_research_workflow_generates_steps
Test that Anthropic generates structured plan steps for a research task.
lib/crewai/tests/utilities/test_structured_planning.py:407
Functiontest_anthropic_specific_parameters
Test Anthropic-specific parameters like stop_sequences and streaming
lib/crewai/tests/llms/anthropic/test_anthropic.py:194
Functiontest_anthropic_stop_sequences_sent_to_api
Test that stop_sequences are properly sent to the Anthropic API.
lib/crewai/tests/llms/anthropic/test_anthropic.py:797
Functiontest_anthropic_stop_sequences_sync
Test that stop and stop_sequences attributes stay synchronized.
lib/crewai/tests/llms/anthropic/test_anthropic.py:779
Functiontest_anthropic_streaming_cached_prompt_tokens
Test that Anthropic streaming correctly extracts and tracks cached_prompt_tokens.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1192
Methodtest_anthropic_streaming_emits_tool_call_events
Test that Anthropic streaming emits tool call events with correct call_type.
lib/crewai/tests/llms/test_tool_call_streaming.py:305
Functiontest_anthropic_streaming_parameter
Test that streaming parameter is properly handled
lib/crewai/tests/llms/anthropic/test_anthropic.py:577
Functiontest_anthropic_streaming_returns_dict_tool_use_blocks_as_tool_calls
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:1764
Functiontest_anthropic_streaming_tool_calls_emit_call_completed_event
Returned tool calls complete the call when streaming, as they do without it.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1819
Methodtest_anthropic_strict_preserves_recursive_type
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1181
Methodtest_anthropic_supports_function_calling
Test that Anthropic models support function calling.
lib/crewai/tests/agents/test_native_tool_calling.py:907
Functiontest_anthropic_supports_stop_words
Test that Anthropic models support stop sequences
lib/crewai/tests/llms/anthropic/test_anthropic.py:536
Functiontest_anthropic_thinking
Test that thinking is properly handled and thinking params are passed to messages.create
lib/crewai/tests/llms/anthropic/test_anthropic.py:810
Functiontest_anthropic_thinking_blocks_preserved_across_turns
Test that thinking blocks are stored and included in subsequent API calls across turns
lib/crewai/tests/llms/anthropic/test_anthropic.py:847
Functiontest_anthropic_token_usage_tracking
Test that token usage is properly tracked for Anthropic responses
lib/crewai/tests/llms/anthropic/test_anthropic.py:628
Functiontest_anthropic_tool_conversion
Test that tools are properly converted to Anthropic format
lib/crewai/tests/llms/anthropic/test_anthropic.py:588
Functiontest_anthropic_tool_execution_returns_tool_result_directly
Test that when available_functions is provided, the tool result is returned directly without additional LLM conversation (matching OpenAI beh
lib/crewai/tests/llms/anthropic/test_anthropic.py:1028
Functiontest_anthropic_tool_execution_with_available_functions
Test that Anthropic provider correctly executes tools when available_functions is provided. This specifically tests the fix for double llm_c
lib/crewai/tests/llms/anthropic/test_anthropic.py:965
Functiontest_anthropic_tool_use_dict_blocks_are_returned_as_tool_calls
Preview Anthropic models may return dict-shaped tool_use blocks.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1689
Methodtest_anthropic_without_interceptor_works
Test that Anthropic LLM works without interceptor.
lib/crewai/tests/llms/hooks/test_anthropic_interceptor.py:91
Methodtest_anyof_string_or_integer
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:278
Functiontest_api_calls_throttling
(capsys)
lib/crewai/tests/test_crew.py:898
Functiontest_api_error_handling
(mock_post)
lib/crewai-tools/tests/tools/serper_dev_tool_test.py:131
Functiontest_api_error_response_handling
(mock_post, tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:139
Functiontest_api_key_falls_back_to_environment
(openai_mock, monkeypatch)
lib/crewai/tests/rag/embeddings/test_openai_embedding_function.py:62
Methodtest_api_key_from_env
Test API key is read from environment variable.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:183
Functiontest_api_response_missing_url
(mock_post, tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:157
Functiontest_app_actions_propagated_to_platform_tools
(mock_get_platform_tools)
lib/crewai/tests/agents/test_agent.py:2663
← previousnext →11,101–11,200 of 19,482, ranked by callers