MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,482 in github.com/crewAIInc/crewAI

↓ 2 callersMethod_finalize_streaming_response
Finalize streaming response with usage tracking, tool execution, and events. Args: full_response: The complete streamed response
lib/crewai/src/crewai/llms/providers/azure/completion.py:1072
↓ 2 callersMethod_finalize_streaming_response
Finalize a streaming response with usage tracking, tool call handling, and events. Args: full_response: The accumulated text resp
lib/crewai/src/crewai/llms/providers/openai/completion.py:2541
↓ 2 callersMethod_finalize_task_execution
Finalize task execution with RPM cleanup, tool processing, and event emission. Args: task: The task that was executed.
lib/crewai/src/crewai/agent/core.py:871
↓ 2 callersFunction_first_int
Return the first integer-coercible value from ``usage_data`` under any of ``keys``. Falls back to ``0`` when nothing matches.
lib/crewai/src/crewai/types/usage_metrics.py:22
↓ 2 callersMethod_flow_context
( flow: Flow[Any], local_context: dict[str, Any] | None = None )
lib/crewai/src/crewai/flow/expressions.py:348
↓ 2 callersFunction_flow_level_persist_yaml
(store)
lib/crewai/tests/test_flow_from_definition.py:3662
↓ 2 callersMethod_flow_post_init
Heavy initialization: state creation, events, memory, method registration.
lib/crewai/src/crewai/flow/runtime/__init__.py:846
↓ 2 callersFunction_flow_uses_human_feedback
True if any declarative method declares ``@human_feedback``. Such flows need the flow runtime's interactive stdin / Rich prompts, which don't
lib/cli/src/crewai_cli/run_declarative_flow.py:260
↓ 2 callersFunction_format_block
Format a single file block using the appropriate formatter. Args: formatter: Provider formatter. file_input: Original file input.
lib/crewai-files/src/crewai_files/formatting/api.py:345
↓ 2 callersMethod_format_messages
Format messages for the LLM. Args: messages: Input messages to format. response_format: Optional response format to u
lib/crewai/src/crewai/lite_agent.py:883
↓ 2 callersMethod_format_result
Describe the completed wait back to the model. Args: waited: The duration actually waited. requested: The duration th
lib/crewai-tools/src/crewai_tools/tools/wait_tool/wait_tool.py:182
↓ 2 callersMethod_format_result
(self, result: Any)
lib/crewai/src/crewai/tools/tool_usage.py:760
↓ 2 callersFunction_format_seconds
Render a duration with a correctly pluralized unit. Args: value: The duration in seconds. Returns: The duration and its unit
lib/crewai-tools/src/crewai_tools/tools/wait_tool/wait_tool.py:38
↓ 2 callersFunction_format_text_block
Format text as a provider-specific content block. Args: text: The text content to format. provider: Provider name for provider-sp
lib/crewai-files/src/crewai_files/formatting/api.py:60
↓ 2 callersFunction_format_tool_output_for_agent
(tool: Any, raw_result: Any)
lib/crewai/src/crewai/tools/structured_tool.py:59
↓ 2 callersFunction_full_crewai_install_error
()
lib/cli/src/crewai_cli/run_crew.py:150
↓ 2 callersFunction_generate_condition
( metadata_key: str, value: Any, bind_variables: list[Any] )
lib/crewai-tools/src/crewai_tools/tools/oracle_vector_search_tool/vector_search.py:257
↓ 2 callersMethod_generate_s3_key
Generate a unique S3 key for the file. For FilePath sources with no content provided, computes hash via streaming. Args:
lib/crewai-files/src/crewai_files/uploaders/bedrock.py:188
↓ 2 callersFunction_generate_user_id
Compute an anonymized user identifier from username and machine ID.
lib/crewai/src/crewai/events/listeners/tracing/utils.py:402
↓ 2 callersMethod_generate_uuid
Generate a deterministic UUID based on a seed string. Args: seed: The seed string to use for UUID generation Returns:
lib/crewai/src/crewai/security/fingerprint.py:76
↓ 2 callersMethod_get_api_key
Get the API key from environment variables.
lib/crewai-tools/src/crewai_tools/tools/merge_agent_handler_tool/merge_agent_handler_tool.py:61
↓ 2 callersMethod_get_async_client
Get or create the aioboto3 session.
lib/crewai-files/src/crewai_files/uploaders/bedrock.py:174
↓ 2 callersMethod_get_async_client
Get or create the async Anthropic client.
lib/crewai-files/src/crewai_files/uploaders/anthropic.py:62
↓ 2 callersMethod_get_async_client
Gemini uses a single client for both sync and async calls.
lib/crewai/src/crewai/llms/providers/gemini/completion.py:157
↓ 2 callersMethod_get_async_client
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:378
↓ 2 callersFunction_get_audio_duration
Get audio duration in seconds using tinytag if available. Args: content: Raw audio bytes. filename: Optional filename for format
lib/crewai-files/src/crewai_files/processing/validators.py:77
↓ 2 callersMethod_get_azure_credential
Reuse the injected credential or create an internally owned default.
lib/crewai-tools/src/crewai_tools/tools/azure_documentdb_vector_search_tool/vector_search.py:160
↓ 2 callersMethod_get_client_params
Get client parameters. Args: include_http_client: When True (default) and an interceptor is set, attach a sync ``
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:445
↓ 2 callersMethod_get_connection
Get a connection from the pool or create a new one.
lib/crewai-tools/src/crewai_tools/tools/snowflake_search_tool/snowflake_search_tool.py:160
↓ 2 callersMethod_get_connection
Get a connection from the connection pool. Returns: Connection: A SingleStore database connection Raises: Ex
lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/singlestore_search_tool.py:323
↓ 2 callersMethod_get_context
(task: Task, task_outputs: list[TaskOutput])
lib/crewai/src/crewai/crew.py:1896
↓ 2 callersMethod_get_coworker
(coworker: str | None, **kwargs: Any)
lib/crewai/src/crewai/tools/agent_tools/base_agent_tools.py:38
↓ 2 callersMethod_get_default_api_key
Get default API key from environment variables.
lib/crewai-tools/src/crewai_tools/rag/embedding_service.py:95
↓ 2 callersMethod_get_device_code
Request a device code from the provider.
lib/crewai-core/src/crewai_core/auth/oauth2.py:111
↓ 2 callersMethod_get_field_default
Get default value from a FieldInfo, handling both default and default_factory.
lib/crewai-tools/src/crewai_tools/generate_tool_specs.py:112
↓ 2 callersFunction_get_file_path
Get the filesystem path if file source is FilePath. Args: file: The file input to check. Returns: Path if source is FilePath
lib/crewai-files/src/crewai_files/uploaders/gemini.py:75
↓ 2 callersFunction_get_file_size
Get file size without reading content if possible. Args: file: The file to get size for. Returns: File size in bytes, or Non
lib/crewai-files/src/crewai_files/uploaders/openai.py:46
↓ 2 callersFunction_get_flow_method_definition
(method: Any)
lib/crewai/src/crewai/flow/dsl/_utils.py:101
↓ 2 callersFunction_get_formatter
Get formatter for provider. Args: provider_lower: Lowercase provider name. api: API variant (e.g., "responses" for OpenAI Respons
lib/crewai-files/src/crewai_files/formatting/api.py:310
↓ 2 callersFunction_get_hitl_prompt
(key: str)
lib/crewai/src/crewai/flow/human_feedback.py:258
↓ 2 callersMethod_get_image_format
Get Bedrock image format from content type. Args: content_type: MIME type. Returns: Format string for Bedroc
lib/crewai-files/src/crewai_files/formatting/bedrock.py:188
↓ 2 callersMethod_get_last_user_content
Get the last user message content from _messages for recall/input.
lib/crewai/src/crewai/lite_agent.py:591
↓ 2 callersMethod_get_max_step_iterations
Get max step iterations from planning config or default to 15.
lib/crewai/src/crewai/agents/agent_executor.py:766
↓ 2 callersMethod_get_memory_systems
Get all available memory systems with their configuration. Returns: Dict containing all memory systems with their reset functions
lib/crewai/src/crewai/crew.py:2511
↓ 2 callersMethod_get_mode
Get the mode mode for a file. Args: file: The file to get mode for. Returns: The file's mode mode, defaultin
lib/crewai-files/src/crewai_files/processing/processor.py:92
↓ 2 callersMethod_get_model_api_key
Get the appropriate API key based on the model being used.
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:259
↓ 2 callersFunction_get_param_count
Return the number of parameters a handler accepts, with caching. Falls back to uncached introspection for unhashable handlers like functools.
lib/crewai/src/crewai/events/utils/handlers.py:18
↓ 2 callersFunction_get_resolver_config
Get resolver config for provider. Args: provider_lower: Lowercase provider name. prefer_upload_override: Override for prefer_uplo
lib/crewai-files/src/crewai_files/formatting/api.py:279
↓ 2 callersFunction_get_schema_generator
Get a SchemaGenerator that omits non-serializable defaults.
lib/crewai/src/crewai/utilities/project_utils.py:521
↓ 2 callersFunction_get_span_duration_ms
(span: Span, end_event: Any)
lib/crewai/src/crewai/telemetry/tracing/handlers.py:737
↓ 2 callersMethod_get_step_timeout
Get per-step timeout from planning config or default to None.
lib/crewai/src/crewai/agents/agent_executor.py:773
↓ 2 callersFunction_get_supported_types
Get list of supported MIME type prefixes from constraints. Args: constraints: Provider constraints. Returns: List of MIME ty
lib/crewai-files/src/crewai_files/formatting/api.py:228
↓ 2 callersMethod_get_system_prompt
Get the system prompt for planning. Returns: The system prompt, either custom or from I18N_DEFAULT.
lib/crewai/src/crewai/utilities/reasoning_handler.py:478
↓ 2 callersFunction_get_tls_verify
Get TLS verify parameter from auth scheme. Args: auth: Optional authentication scheme with TLS config. Returns: SSL context,
lib/crewai/src/crewai/a2a/utils/agent_card.py:43
↓ 2 callersMethod_get_transfer_config
Get boto3 TransferConfig for multipart uploads.
lib/crewai-files/src/crewai_files/uploaders/bedrock.py:227
↓ 2 callersFunction_get_turn_context
Get context for a delegation turn. Returns: Tuple of (agent_branch, accepted_output_modes).
lib/crewai/src/crewai/a2a/wrapper.py:994
↓ 2 callersFunction_git
(cwd, *args: str)
lib/cli/tests/test_git.py:160
↓ 2 callersMethod_gracefully_fail
Handle errors gracefully without disrupting user experience.
lib/crewai/src/crewai/events/listeners/tracing/first_time_trace_handler.py:234
↓ 2 callersMethod_handle_api_error
Handle API errors with appropriate logging and events. Args: error: The exception that occurred from_task: Task that
lib/crewai/src/crewai/llms/providers/azure/completion.py:444
↓ 2 callersMethod_handle_client_error
Handle AWS ClientError with specific error codes and return error message.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:2185
↓ 2 callersMethod_handle_completion
Handle non-streaming chat completion.
lib/crewai/src/crewai/llms/providers/azure/completion.py:974
↓ 2 callersMethod_handle_completion_error
Handle completion-specific errors including context length checks. Args: error: The exception that occurred from_task
lib/crewai/src/crewai/llms/providers/azure/completion.py:482
↓ 2 callersMethod_handle_converse
Handle non-streaming converse API call following AWS best practices.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:705
↓ 2 callersMethod_handle_crew_training_output
Handle training output.
lib/crewai/src/crewai/core/providers/human_input.py:38
↓ 2 callersMethod_handle_human_feedback
Process human feedback and refine answer. Args: formatted_answer: Initial agent result. Returns: Final answe
lib/crewai/src/crewai/agents/agent_executor.py:3553
↓ 2 callersFunction_handle_max_turns_exceeded
Handle the case when max turns is exceeded. Shared logic for both sync and async delegation. Returns: Final message if found in hist
lib/crewai/src/crewai/a2a/wrapper.py:763
↓ 2 callersMethod_handle_streaming_tool_calls
( self, tool_calls: list[ChatCompletionDeltaToolCall], accumulated_tool_args: defaultd
lib/crewai/src/crewai/llm.py:1195
↓ 2 callersMethod_handle_structured_output_tool_call
Validate and emit event for structured_output tool call. Args: structured_data: The arguments passed to the structured_output too
lib/crewai/src/crewai/llms/providers/gemini/completion.py:899
↓ 2 callersFunction_handle_task_completion
Handle task completion state including reference task updates. When a remote task completes, this function: 1. Adds the completed task_id to
lib/crewai/src/crewai/a2a/wrapper.py:1068
↓ 2 callersFunction_handler_for
The handler `setup_listeners` actually registered for an event type. Called directly rather than through ``bus.emit``. ``emit`` carries its own
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:267
↓ 2 callersMethod_has_custom_openai_base_url
Return whether this call explicitly configures a custom endpoint.
lib/crewai/src/crewai/llm.py:600
↓ 2 callersFunction_has_sql_comment
Return True if *sql* contains a comment marker anywhere. Read-only validation refuses commented statements rather than stripping or skipping
lib/crewai-tools/src/crewai_tools/tools/nl2sql/nl2sql_tool.py:78
↓ 2 callersMethod_headers
()
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/integrations_client.py:225
↓ 2 callersFunction_hook_verbose
Whether swallowed-hook-error warnings should be printed. Mirrors the pre-dispatcher behavior where a failing tool hook surfaced a warning whe
lib/crewai/src/crewai/hooks/tool_hooks.py:164
↓ 2 callersFunction_host
(url: str)
lib/cli/src/crewai_cli/api_keys.py:479
↓ 2 callersMethod_http_client
A client that reaches AMP through the machine's proxy and CA, not a project's .env.
lib/crewai-core/src/crewai_core/plus_api.py:297
↓ 2 callersFunction_http_status_error
(status_code: int)
lib/crewai/tests/mcp/test_client_connect_auth.py:46
↓ 2 callersFunction_id_in_filter
Build an ``id IN (...)`` predicate that matches each ID literally.
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:49
↓ 2 callersFunction_image_file
()
lib/crewai-files/tests/test_bedrock_async_client.py:54
↓ 2 callersMethod_import_sdk
(cls)
lib/crewai-tools/src/crewai_tools/tools/daytona_sandbox_tool/daytona_base_tool.py:105
↓ 2 callersFunction_in_a_project
A cwd that `crewai run` accepts, so execution reaches the backfill call.
lib/crewai/tests/cli/test_project_id_backfill.py:116
↓ 2 callersMethod_index_exists
( self, index_name: str, table_name: str | None = None, owner: str | None = No
lib/crewai-tools/src/crewai_tools/tools/oracle_vector_search_tool/vector_search.py:621
↓ 2 callersFunction_info_sqlite_id
(db_path: str, checkpoint_id: str)
lib/cli/src/crewai_cli/checkpoint_cli.py:325
↓ 2 callersFunction_info_sqlite_latest
(db_path: str)
lib/cli/src/crewai_cli/checkpoint_cli.py:312
↓ 2 callersFunction_init_delegation_state
Initialize delegation state from context and agent cards. Args: ctx: Delegation context with config and settings. agent_cards: Pr
lib/crewai/src/crewai/a2a/wrapper.py:968
↓ 2 callersMethod_init_responses_delegate
Create an OpenAICompletion delegate for the Azure OpenAI Responses API. The Azure OpenAI Responses API uses the standard OpenAI Python SDK
lib/crewai/src/crewai/llms/providers/azure/completion.py:195
↓ 2 callersMethod_init_trace
Initialize a trace entry. Args: trace_key: The key to store the trace under. **kwargs: Trace metadata to store.
lib/crewai/src/crewai/experimental/evaluation/evaluation_listener.py:167
↓ 2 callersMethod_initialize_client
Initialize the Google Gen AI client with proper parameter handling. Args: use_vertexai: Whether to use Vertex AI (from environmen
lib/crewai/src/crewai/llms/providers/gemini/completion.py:242
↓ 2 callersMethod_initialize_state
Initialize or update flow state with new inputs. Args: inputs: Dictionary of state values to set/update Raises:
lib/crewai/src/crewai/flow/runtime/__init__.py:1903
↓ 2 callersMethod_inject_delegation_tools
( self, tools: list[BaseTool], task_agent: BaseAgent, agents: Sequence[BaseAge
lib/crewai/src/crewai/crew.py:1768
↓ 2 callersMethod_inject_files_from_inputs
Inject files into the last user message. Args: inputs: Input dictionary that may contain a 'files' key.
lib/crewai/src/crewai/agents/agent_executor.py:3492
↓ 2 callersFunction_input_msg
(raw: Any)
lib/crewai/src/crewai/telemetry/tracing/gen_ai_shapes.py:302
↓ 2 callersFunction_install_project_dependencies_if_needed
Prepare project dependencies without mutating existing lockfiles.
lib/cli/src/crewai_cli/run_crew.py:559
↓ 2 callersMethod_install_repo
Download and extract a template repo into the current directory. Args: repo_name: Full GitHub repo name (e.g. template_deep_resea
lib/cli/src/crewai_cli/remote_template/main.py:108
↓ 2 callersFunction_instantiate_agent_from_data
Resolve the agent class and kwargs from definition data and instantiate it.
lib/crewai/src/crewai/project/json_loader.py:217
↓ 2 callersMethod_invoke_loop
Invoke the agent loop and return the result.
lib/crewai/src/crewai/core/providers/human_input.py:30
↓ 2 callersFunction_is_a_link
A symbolic link, or a Windows junction, which `is_symlink` misses.
lib/cli/src/crewai_cli/experimental/eval_crew.py:2557
↓ 2 callersMethod_is_azure_openai_endpoint
(endpoint: str | None)
lib/crewai/src/crewai/llms/providers/azure/completion.py:162
↓ 2 callersFunction_is_cacheable
Whether a provider's resolved catalog may be cached. Ollama is a local server (``/api/tags`` is fast), and its installed models change out-of
lib/cli/src/crewai_cli/model_catalog.py:607
↓ 2 callersMethod_is_claude_model
(self)
lib/crewai/src/crewai/llms/providers/snowflake/completion.py:162
← previousnext →2,301–2,400 of 19,482, ranked by callers