MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions13,282 in github.com/crewAIInc/crewAI

↓ 9 callersMethod_collapse_to_outcome
Collapse free-form feedback to a predefined outcome using LLM. This method uses the specified LLM to interpret the human's feedback a
lib/crewai/src/crewai/flow/runtime/__init__.py:3572
↓ 9 callersMethod_extract_anthropic_token_usage
Extract token usage and response metadata from Anthropic response.
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:1962
↓ 9 callersFunction_format_messages_for_summary
Format messages with role labels for summarization. Skips system messages. Handles None content, tool_calls, and multimodal content blocks.
lib/crewai/src/crewai/utilities/agent_utils.py:839
↓ 9 callersMethod_get_or_create_interpreter
Get or create a code interpreter for the specified thread. Args: thread_id: Thread ID for the code interpreter session R
lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/code_interpreter_toolkit.py:520
↓ 9 callersFunction_is_non_roundtrippable
Return ``True`` if *fn* cannot survive a serialize/deserialize round-trip. Built-in functions, plain module-level functions, and classes produce
lib/crewai/src/crewai/types/callback.py:31
↓ 9 callersFunction_load_user_data
Read the user-data JSON file, returning ``{}`` on missing/corrupt.
lib/crewai-core/src/crewai_core/user_data.py:34
↓ 9 callersFunction_prepare_documents_for_chromadb
Prepare documents for ChromaDB by extracting IDs, texts, and metadata. Args: documents: List of BaseRecord documents to prepare. Ret
lib/crewai/src/crewai/rag/chromadb/utils.py:56
↓ 9 callersFunction_python_ref_errors
(value: Any, source: str | Path)
lib/crewai/src/crewai/project/json_loader.py:612
↓ 9 callersFunction_resolve_checkpoint
( location: str, checkpoint_id: str | None )
lib/cli/src/crewai_cli/checkpoint_cli.py:431
↓ 9 callersMethod_run_sync
Run an async coroutine from sync context without blocking event loop.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:403
↓ 9 callersMethod_safe_telemetry_procedure
Run a void telemetry procedure, swallowing failures.
lib/crewai-core/src/crewai_core/telemetry.py:175
↓ 9 callersMethod_scope_path
(self, scope: str | None)
lib/crewai/src/crewai/memory/memory_scope.py:91
↓ 9 callersMethod_set_plan_step_status
Set status for an explicit plan step reported by the planner.
lib/cli/src/crewai_cli/crew_run_tui.py:1803
↓ 9 callersMethodaemit
Asynchronously emit an event to registered async handlers. Only processes async handlers. Use in async contexts. Args: s
lib/crewai/src/crewai/events/event_bus.py:771
↓ 9 callersMethodclose
Clean up Stagehand resources.
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:681
↓ 9 callersMethodclose
Kill the cached persistent sandbox if one exists.
lib/crewai-tools/src/crewai_tools/tools/e2b_sandbox_tool/e2b_base_tool.py:183
↓ 9 callersFunctionconfigured_project_declarative_flow
Return the configured declarative flow source for flow projects.
lib/cli/src/crewai_cli/run_declarative_flow.py:449
↓ 9 callersMethodcreate_collection
Create a new collection in Qdrant. Keyword Args: collection_name: Name of the collection to create. Must be unique. v
lib/crewai/src/crewai/rag/qdrant/client.py:68
↓ 9 callersFunctionextract_output_from_stream
Extract output from code interpreter response stream. Args: response: Response from code interpreter execution Returns: Extr
lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/code_interpreter_toolkit.py:19
↓ 9 callersFunctionextract_tool_call_info
Extract tool call ID, name, and arguments from various provider formats. Args: tool_call: The tool call object to extract info from.
lib/crewai/src/crewai/utilities/agent_utils.py:1313
↓ 9 callersMethodfrom_checkpoint
Restore a Crew from a checkpoint, ready to resume via kickoff(). Args: config: Checkpoint configuration with ``restore_from`` set
lib/crewai/src/crewai/crew.py:417
↓ 9 callersFunctionget_after_tool_call_hooks
Get all registered global after_tool_call hooks. Returns: List of registered after hooks
lib/crewai/src/crewai/hooks/tool_hooks.py:286
↓ 9 callersFunctionget_current_parent_id
Get the current parent event ID from the stack.
lib/crewai/src/crewai/events/event_context.py:62
↓ 9 callersMethodget_mcp_tools
(self, mcps: list[str])
lib/crewai/tests/agents/agent_builder/test_base_agent.py:25
↓ 9 callersMethodinitialize_batch
Initialize a new trace batch (thread-safe)
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:88
↓ 9 callersMethodinstall
(self, handle: str)
lib/cli/src/crewai_cli/tools/main.py:209
↓ 9 callersFunctionis_current_version_yanked
Return ``(yanked, reason)`` for the currently installed version.
lib/crewai-core/src/crewai_core/version.py:149
↓ 9 callersFunctionis_tracing_enabled_in_context
Check if tracing is enabled in current execution context. Returns: True if tracing is enabled in context, False otherwise. Return
lib/crewai/src/crewai/events/listeners/tracing/utils.py:161
↓ 9 callersMethodkickoff
(self, inputs)
lib/cli/tests/test_run_crew.py:592
↓ 9 callersFunctionmark_cache_breakpoint
Return ``message`` with the cache-breakpoint flag set. Returns a new dict so callers can safely pass literal dicts.
lib/crewai/src/crewai/llms/cache.py:27
↓ 9 callersMethodmark_completed
Mark a todo as completed by step number.
lib/crewai/src/crewai/utilities/planning_types.py:96
↓ 9 callersFunctionpush_event_scope
Push an event ID and type onto the scope stack.
lib/crewai/src/crewai/events/event_context.py:171
↓ 9 callersFunctionregister
Register a global hook for an interception point.
lib/crewai/src/crewai/hooks/dispatch.py:108
↓ 9 callersMethodsave
Save the data to the specified file using pickle. Args: data: The data to be saved to the file.
lib/crewai/src/crewai/utilities/file_handler.py:143
↓ 9 callersFunctionset_tui_mode
(enabled: bool)
lib/crewai/src/crewai/events/listeners/tracing/utils.py:79
↓ 9 callersFunctionstring_to_callable
Convert a dotted path string to the callable it references. If *value* is already callable it is returned as-is, with a warning if it cannot
lib/crewai/src/crewai/types/callback.py:54
↓ 9 callersMethodtask_execution
Generate a standard prompt for task execution. Returns: A dictionary containing the constructed prompt(s).
lib/crewai/src/crewai/utilities/prompts.py:74
↓ 9 callersFunctionvalidate_audio
Validate an audio file against constraints. Args: file: The audio file to validate. constraints: Audio constraints to validate ag
lib/crewai-files/src/crewai_files/processing/validators.py:331
↓ 8 callersMethod__init__
(self, toolkit: CodeInterpreterToolkit, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/code_interpreter_toolkit.py:388
↓ 8 callersMethod_common_payload_refinement
Common payload refinement for all tools.
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/base.py:284
↓ 8 callersMethod_create_mock_tool
(self, name, description)
lib/crewai-tools/tests/tools/tool_collection_test.py:20
↓ 8 callersFunction_create_skill_dir
Helper to create a skill directory with SKILL.md.
lib/crewai/tests/skills/test_loader.py:19
↓ 8 callersFunction_emit_llm_call
Emit one fake ``LLMCallCompletedEvent`` with ``current_flow_id`` pinned to ``flow_id``. Runs in a freshly-copied context so the value the bus
lib/crewai/tests/test_flow_usage_metrics.py:30
↓ 8 callersMethod_fetch_actions
Fetch action schemas from the platform API.
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_tool_builder.py:41
↓ 8 callersMethod_format_messages
Format messages for OpenAI API.
lib/crewai/src/crewai/llms/providers/openai/completion.py:2737
↓ 8 callersMethod_format_messages_for_converse
Format messages for Converse API following AWS documentation. Note: Returns dict[str, Any] instead of LLMMessage because Bedrock uses
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:1778
↓ 8 callersMethod_get_client
Get or create the Gemini client.
lib/crewai-files/src/crewai_files/uploaders/gemini.py:116
↓ 8 callersMethod_get_client_params
Get OpenAI client parameters.
lib/crewai/src/crewai/llms/providers/openai/completion.py:398
↓ 8 callersFunction_get_machine_id
Stable, privacy-preserving machine fingerprint (cross-platform).
lib/crewai/src/crewai/events/listeners/tracing/utils.py:191
↓ 8 callersMethod_invoke_before_llm_call_hooks
Invoke before_llm_call hooks for direct LLM calls (no agent context). This method should be called by native provider implementations before
lib/crewai/src/crewai/llms/base_llm.py:981
↓ 8 callersMethod_invoke_step_callback
Invoke step callback if configured. Args: formatted_answer: Current agent response.
lib/crewai/src/crewai/experimental/agent_executor.py:2934
↓ 8 callersFunction_is_cache_valid
Return True if the cache is less than 24 hours old.
lib/crewai-core/src/crewai_core/version.py:49
↓ 8 callersMethod_make_mcp_request
Make a JSON-RPC 2.0 MCP request to Agent Handler.
lib/crewai-tools/src/crewai_tools/tools/merge_agent_handler_tool/merge_agent_handler_tool.py:73
↓ 8 callersFunction_make_pyproject
( name: str = "my_crew", dependencies: Iterable[str] = ("crewai>=1.14.0",), *, hatchling: bool
lib/cli/tests/deploy/test_validate.py:23
↓ 8 callersMethod_oauth2_base_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/keycloak.py:36
↓ 8 callersFunction_record
(dim: int, content: str = "test")
lib/crewai/tests/memory/test_dimension_mismatch.py:24
↓ 8 callersMethod_rejects_reasoning_effort_with_tools
Whether a 400 is OpenAI refusing `reasoning_effort` alongside tools. GPT-5.6 applies a server-side `reasoning_effort` default and then reject
lib/crewai/src/crewai/llms/providers/openai/completion.py:1725
↓ 8 callersFunction_resolve_dotted_path
Import a module and walk attribute lookups to resolve a dotted path. Handles multi-level qualified names like ``"module.ClassName.method"`` b
lib/crewai/src/crewai/types/callback.py:97
↓ 8 callersMethod_set_agent_params
(self, data: dict[str, Any])
lib/crewai/src/crewai/events/base_events.py:107
↓ 8 callersMethod_set_task_params
(self, data: dict[str, Any])
lib/crewai/src/crewai/events/base_events.py:101
↓ 8 callersFunction_split_messages_into_chunks
Split messages into chunks at message boundaries. Excludes system messages from chunks. Each chunk stays under max_tokens based on estimated
lib/crewai/src/crewai/utilities/agent_utils.py:894
↓ 8 callersMethod_to_responses_input
Translate a chat-format message into Responses ``input`` items. Tool calling is expressed differently by the two APIs. Chat Completions
lib/crewai/src/crewai/llms/providers/openai/completion.py:750
↓ 8 callersMethod_track_token_usage_internal
Track token usage internally in the LLM instance. Args: usage_data: Token usage data from the API response
lib/crewai/src/crewai/llms/base_llm.py:948
↓ 8 callersMethod_validate_query
Validate the search query to ensure it's safe to execute. Only SELECT and SHOW statements are allowed for security reasons. Args:
lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/singlestore_search_tool.py:356
↓ 8 callersMethodaclose
Cancel streaming and clean up resources.
lib/crewai/src/crewai/types/streaming.py:264
↓ 8 callersFunctionactivate_skill
Promote a skill to INSTRUCTIONS disclosure level. Idempotent: returns the skill unchanged if already at or above INSTRUCTIONS. Args:
lib/crewai/src/crewai/skills/loader.py:114
↓ 8 callersMethodadd
Add content to the knowledge base.
lib/crewai-tools/src/crewai_tools/tools/rag/rag_tool.py:98
↓ 8 callersFunctionchunk_text
Split a text file into chunks of maximum character count. Yields chunks one at a time to minimize memory usage. Args: file: The text
lib/crewai-files/src/crewai_files/processing/transformers.py:227
↓ 8 callersFunctioncleanup_temp_file
(path)
lib/crewai-tools/tests/rag/test_text_loaders.py:19
↓ 8 callersMethodcopy
Creates a deep copy of the Crew instance. Returns: Crew: A new instance with copied components
lib/crewai/src/crewai/crew.py:2096
↓ 8 callersMethoddelete_collection
Delete a collection and all its data. Keyword Args: collection_name: Name of the collection to delete. Raises:
lib/crewai/src/crewai/rag/qdrant/client.py:430
↓ 8 callersFunctiondetect_content_type
Detect MIME type from file content. Uses python-magic if available for accurate content-based detection, falls back to mimetypes module using
lib/crewai-files/src/crewai_files/core/sources.py:125
↓ 8 callersMethodfirst
(self, event_type: type[BaseEvent])
lib/crewai/tests/events/test_event_ordering.py:44
↓ 8 callersFunctionforce_additional_properties_false
Force additionalProperties=false on all object-type dicts recursively. OpenAI strict mode requires all objects to have additionalProperties=false
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:181
↓ 8 callersMethodfrom_flow
Build an expression with the standard Flow runtime context.
lib/crewai/src/crewai/flow/expressions.py:166
↓ 8 callersFunctiongenerate_filename
Generate a UUID-based filename with extension from content type. Args: content_type: MIME type to derive extension from. Returns:
lib/crewai-files/src/crewai_files/core/sources.py:110
↓ 8 callersFunctionget_all_files
Get merged crew and task files. Task files override crew files with the same name. Args: crew_id: Unique identifier for the crew exe
lib/crewai/src/crewai/utilities/file_store.py:250
↓ 8 callersFunctionget_crew_context
Get the current crew context from OpenTelemetry baggage. Returns: CrewContext instance containing crew context information, or None if no
lib/crewai/src/crewai/utilities/crew/crew_context.py:10
↓ 8 callersFunctionget_crewai_tools_dependency
Return the generated-project dependency for CrewAI with tools.
lib/cli/src/crewai_cli/version.py:27
↓ 8 callersMethodget_or_create_collection
Get an existing collection or create it if it doesn't exist. Keyword Args: collection_name: Name of the collection to get or crea
lib/crewai/src/crewai/rag/qdrant/client.py:146
↓ 8 callersFunctionget_tool_call_events
Extract tool call streaming events from mock emit calls.
lib/crewai/tests/llms/test_tool_call_streaming.py:48
↓ 8 callersFunctionget_triggering_event_id
Get the ID of the event that triggered the current execution. Returns: The event_id of the triggering event, or None if not in a triggere
lib/crewai/src/crewai/events/event_context.py:100
↓ 8 callersMethodis_expired
Check if this cached upload has expired.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:48
↓ 8 callersMethodis_url
(self)
lib/crewai-tools/src/crewai_tools/rag/source_content.py:20
↓ 8 callersFunctionnormalize_scope_path
Normalize a scope path by removing double slashes and ensuring proper format. Args: path: The raw scope path (e.g. '/crew/MyCrewName//age
lib/crewai/src/crewai/memory/utils.py:39
↓ 8 callersFunctionparse_registry_ref
Parse '@org/skill-name' into (org, name), ignoring any version pin. Retained for backwards compatibility. Use :func:`parse_skill_ref` to read
lib/crewai/src/crewai/skills/registry.py:95
↓ 8 callersMethodpath_exists
(self)
lib/crewai-tools/src/crewai_tools/rag/source_content.py:29
↓ 8 callersMethodpublish_tool
( self, handle: str, is_public: bool, version: str, description: str |
lib/crewai-core/src/crewai_core/plus_api.py:245
↓ 8 callersMethodrecall
Recall relevant memories. Delegates to this flow's memory. Args: query: Natural language query. **kwargs: Passed to m
lib/crewai/src/crewai/flow/runtime/__init__.py:913
↓ 8 callersMethodrequest_human_input
Request human input during LLM hook execution. This method pauses live console updates, displays a prompt to the user, waits for thei
lib/crewai/src/crewai/hooks/llm_hooks.py:114
↓ 8 callersFunctionresolve_refs
Recursively resolve all local $refs in the given JSON Schema using $defs as the source. This is needed because Pydantic generates $ref-based sche
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:99
↓ 8 callersFunctionset_platform_integration_token
Set the platform integration token in the current context. Args: integration_token: The integration token to set.
lib/crewai/src/crewai/context.py:30
↓ 8 callersFunctionstrip_jsonc_comments
Strip JSONC comments and trailing commas while preserving string values.
lib/crewai/src/crewai/project/json_loader.py:188
↓ 8 callersFunctionstrip_unsupported_formats
Remove format annotations that OpenAI strict mode doesn't support. OpenAI only supports: date-time, date, time, duration. Other formats like
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:230
↓ 8 callersMethodsupports_function_calling
Check if the model supports function calling. Note: This method is only used by the litellm fallback path. Native providers override
lib/crewai/src/crewai/llm.py:2402
↓ 8 callersMethodsupports_stop_words
Check if the model supports stop words. Note: This method is only used by the litellm fallback path. Native providers override this m
lib/crewai/src/crewai/llm.py:2422
↓ 8 callersFunctionsuppress_warnings
Context manager to suppress all warnings. Yields: None during the context execution. Note: This implementation consolidates
lib/crewai/src/crewai/utilities/logger_utils.py:43
↓ 8 callersMethodtools
Get all available agent tools
lib/crewai/src/crewai/tools/agent_tools/agent_tools.py:22
↓ 8 callersFunctionwrite_temp_file
(content, suffix=".txt", encoding="utf-8")
lib/crewai-tools/tests/rag/test_text_loaders.py:11
↓ 7 callersMethod__get__
Support instance methods by implementing the descriptor protocol. Args: obj: The instance that the method is accessed through.
lib/crewai/src/crewai/project/wrappers.py:297
← previousnext →301–400 of 13,282, ranked by callers