MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions15,572 in github.com/crewAIInc/crewAI

↓ 27 callersMethodresult
(self)
lib/crewai/tests/test_flow.py:1578
↓ 26 callersFunction_write_agent
(agents_dir: Path, name: str, **overrides)
lib/crewai/tests/project/test_crew_loader.py:47
↓ 26 callersFunctiondispatch
Dispatch a context to all hooks registered for a point. Resolves global then scoped hooks and runs them through :func:`run_hooks`. No-op fast
lib/crewai/src/crewai/hooks/dispatch.py:357
↓ 26 callersMethodprompt
Generates the task prompt with optional markdown formatting. When the markdown attribute is True, instructions for formatting the res
lib/crewai/src/crewai/task.py:971
↓ 26 callersFunctionreset_last_event_id
Reset the last event ID to None. Should be called at the start of a new flow or when resetting event state.
lib/crewai/src/crewai/events/event_context.py:83
↓ 26 callersMethodresume
Resume flow execution, optionally with human feedback. This method continues flow execution after a flow was paused for async human f
lib/crewai/src/crewai/flow/runtime/__init__.py:1341
↓ 25 callersFunction_json_responder
(body: dict[str, Any], status: int = 200)
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:124
↓ 25 callersMethodask
Request input from the user during flow execution. Blocks the current thread until the user provides input or the timeout expires. Wo
lib/crewai/src/crewai/flow/runtime/__init__.py:3434
↓ 25 callersFunctionbuild_flow_structure
Build a visualization structure projection from a FlowDefinition.
lib/crewai/src/crewai/flow/visualization/builder.py:169
↓ 25 callersFunctionconvert_tools_to_openai_schema
Convert CrewAI tools to OpenAI function calling format. This function converts CrewAI BaseTool and CrewStructuredTool objects into the OpenAI
lib/crewai/src/crewai/utilities/agent_utils.py:237
↓ 25 callersFunctiongenerate_model_description
Generate JSON schema description of a Pydantic model. This function takes a Pydantic model class and returns its JSON schema, which includes
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:650
↓ 25 callersMethodremove
Sync wrapper for aremove.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:460
↓ 25 callersMethodsave
(self, documents)
lib/crewai/tests/agents/test_agent.py:1929
↓ 24 callersFunction_conversational_declaration
A declaration naming the built-in methods explicitly. Synthesizing these entries from ``conversational.enabled`` is a follow-up; until then a
lib/crewai/tests/test_flow_conversation.py:2446
↓ 24 callersFunction_create_analyst_crew
Create a simple analyst crew for file analysis.
lib/crewai/tests/test_crew_multimodal.py:95
↓ 24 callersFunction_emit_event
(event: object)
lib/cli/tests/test_crew_run_tui.py:76
↓ 24 callersMethod_track_token_usage_internal
Track token usage from Bedrock response.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:2099
↓ 24 callersMethodappend_assistant_message
Append a final user-visible assistant message.
lib/crewai/src/crewai/flow/conversational_mixin.py:787
↓ 24 callersFunctionget_before_llm_call_hooks
Get all registered global before_llm_call hooks. Returns: List of registered before hooks
lib/crewai/src/crewai/hooks/llm_hooks.py:294
↓ 24 callersFunctionto_serializable
Converts a Python object into a JSON-compatible representation. Supports primitives, datetime objects, collections, dictionaries, dataclasses
lib/crewai/src/crewai/utilities/serialization.py:18
↓ 23 callersMethod_apply_stop_words
Apply stop words to truncate response content. This method provides consistent stop word behavior across all native SDK providers. Na
lib/crewai/src/crewai/llms/base_llm.py:464
↓ 23 callersFunction_build_multimodal_message
Build a multimodal message with text and file content.
lib/crewai/tests/llms/test_multimodal_integration.py:78
↓ 23 callersFunction_mock_response
Build a ``requests.Response``-like mock with the attributes used by ``_make_request``.
lib/crewai-tools/tests/tools/brave_search_tool_test.py:37
↓ 23 callersMethod_prepare_responses_params
Prepare parameters for OpenAI Responses API. The Responses API uses a different structure than Chat Completions: - `input` instead of
lib/crewai/src/crewai/llms/providers/openai/completion.py:972
↓ 23 callersFunction_start_span
( providers: TelemetryProviders, ctx: TelemetryExecutionContext, name: str, event: Any, at
lib/crewai/src/crewai/telemetry/tracing/handlers.py:641
↓ 23 callersMethodcreate
(self, execution_uuid: str)
lib/crewai/src/crewai/telemetry/tracing/grants.py:86
↓ 23 callersMethodget
Look up a node by event ID. Args: event_id: The event's unique identifier. Returns: The node, or None if not
lib/crewai/src/crewai/state/event_record.py:148
↓ 23 callersFunctiontrace_consent
Choose how executions in this context ask permission to share traces. The callback runs once after a successful execution has finished. It re
lib/crewai/src/crewai/telemetry/tracing/ephemeral.py:39
↓ 22 callersMethod__setattr__
Allow arbitrary attribute assignment for backward compat with plain class.
lib/crewai/src/crewai/flow/runtime/__init__.py:826
↓ 22 callersMethod_generate_description
(self)
lib/crewai-tools/src/crewai_tools/tools/patronus_eval_tool/patronus_eval_tool.py:102
↓ 22 callersFunction_store_span
Store a span and apply any pending end that arrived before it was created. The event-bus thread pool can deliver completion-event handlers before
lib/crewai/src/crewai/telemetry/tracing/handlers.py:715
↓ 22 callersMethodcopy
Create a deep copy of the Agent.
lib/crewai/src/crewai/agents/agent_builder/base_agent.py:702
↓ 22 callersMethodfail
(params, **kwargs)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:177
↓ 22 callersMethodflush
Block until all pending event handlers complete. This method waits for all futures from previously emitted events to finish executing
lib/crewai/src/crewai/events/event_bus.py:734
↓ 22 callersFunctionget_platform_integration_token
Get the platform integration token from the current context or environment. Returns: The integration token if set, otherwise None.
lib/crewai/src/crewai/context.py:39
↓ 22 callersFunctionget_trace_session
Return the tracing session owned by the active execution.
lib/crewai/src/crewai/telemetry/tracing/context.py:96
↓ 22 callersMethodpost
(ctx)
lib/crewai/tests/hooks/test_interception_conformance.py:211
↓ 22 callersFunctionreset_emission_counter
Reset the emission sequence counter to 1. Resets for the current context only.
lib/crewai/src/crewai/events/base_events.py:49
↓ 22 callersMethodsupports_multimodal
Check if the model supports multimodal inputs. For litellm, check common vision-enabled model prefixes. Returns: True if
lib/crewai/src/crewai/llm.py:2733
↓ 21 callersMethod_effective_stream
Return the call-scoped streaming mode for this instance.
lib/crewai/src/crewai/llms/base_llm.py:246
↓ 21 callersMethod_emit_call_started_event
Emit LLM call started event.
lib/crewai/src/crewai/llms/base_llm.py:561
↓ 21 callersFunction_run_without_import_check
Run validation with the subprocess-based import check stubbed out; the classifier is exercised directly in its own tests below.
lib/cli/tests/deploy/test_validate.py:105
↓ 21 callersFunctionget_crewai_version
Return the installed crewAI version string. Falls back to ``"unknown"`` when neither crewai nor crewai-core are pip-installed (e.g. running d
lib/crewai-core/src/crewai_core/version.py:25
↓ 21 callersMethodretrieve
Retrieve a prompt by kind and key. Args: kind: The kind of prompt. key: The key of the specific prompt to retrieve.
lib/crewai/src/crewai/utilities/i18n.py:100
↓ 21 callersMethodsave_pending_feedback
Save state with a pending feedback marker. This method stores both the flow state and the pending feedback context, allowing the flow
lib/crewai/src/crewai/flow/persistence/sqlite.py:222
↓ 21 callersFunctionsummarize_messages
Summarize messages to fit within context window. Uses structured context compaction: preserves system messages, splits at message boundaries,
lib/crewai/src/crewai/utilities/agent_utils.py:1080
↓ 20 callersFunction_create_analyst_agent
Create a simple analyst agent for file analysis.
lib/crewai/tests/test_agent_multimodal.py:104
↓ 20 callersFunction_filter_none
(attrs: dict[str, Any])
lib/crewai/src/crewai/telemetry/tracing/semantic_conventions.py:66
↓ 20 callersMethod_handle_trace_event
Generic handler for context end events. Args: event_type: Type of the event. source: Source object that triggered the
lib/crewai/src/crewai/events/listeners/tracing/trace_listener.py:947
↓ 20 callersFunctioncreate_init_file
(directory, content)
lib/crewai/tests/cli/test_utils.py:21
↓ 20 callersFunctioncreate_smart_task
Smart task factory that automatically assigns a mock agent when guardrails are present. This maintains backward compatibility while handling
lib/crewai/tests/test_task_guardrails.py:17
↓ 20 callersMethodget_token_usage_summary
Get summary of token usage for this LLM instance. The counters are cumulative for the lifetime of this instance: they grow across eve
lib/crewai/src/crewai/llms/base_llm.py:1004
↓ 20 callersFunctionis_context_length_exceeded
Check if the exception is due to context length exceeding. Args: exception: The exception to check Returns: bool: True if th
lib/crewai/src/crewai/utilities/agent_utils.py:789
↓ 20 callersFunctionjoin_scope_paths
Join a root scope with an inner scope, handling edge cases properly. Args: root: The root scope prefix (e.g. '/crew/research-crew').
lib/crewai/src/crewai/memory/utils.py:67
↓ 20 callersMethodr_locked
Context manager for acquiring a read lock. Yields: None
lib/crewai/src/crewai/utilities/rw_lock.py:45
↓ 20 callersMethodto_structured_tool
(self)
lib/crewai/tests/utilities/test_planning_handler.py:125
↓ 20 callersFunctionvalidate_file_path
Validate that a file path is safe to read. Resolves symlinks and ``..`` components, then checks that the resolved path falls within *base_dir
lib/crewai-tools/src/crewai_tools/security/safe_path.py:92
↓ 19 callersMethod_call_completions
Call OpenAI Chat Completions API. Falls back to the Responses API when the model turns out not to be served by chat completions, whic
lib/crewai/src/crewai/llms/providers/openai/completion.py:650
↓ 19 callersFunction_sanitize_collection_name
Sanitize a collection name to meet ChromaDB requirements. Requirements: 1. 3-63 characters long 2. Starts and ends with alphanumeric char
lib/crewai/src/crewai/rag/chromadb/utils.py:296
↓ 19 callersMethodcreate_crew
(self, **kwargs)
lib/cli/tests/test_crew_run_tui.py:89
↓ 19 callersFunctiondetect_coding_agent
Best-effort detection of the AI coding assistant running this process. Uses the shared ``CODING_AGENT_ENV_MARKERS`` table, so this agrees with th
lib/crewai-core/src/crewai_core/runtime_env.py:209
↓ 19 callersFunctionformat_multimodal_content
Format text and files as provider-specific multimodal content blocks. This is the main high-level API for converting files to content blocks
lib/crewai-files/src/crewai_files/formatting/api.py:82
↓ 19 callersFunctionregister_before_tool_call_hook
Register a global before_tool_call hook. Global hooks are added to all tool executions automatically. This is a convenience function for regi
lib/crewai/src/crewai/hooks/tool_hooks.py:208
↓ 19 callersMethodresolve
Resolve a file to its delivery format for a provider. Args: file: The file to resolve. provider: Provider name (e.g.,
lib/crewai-files/src/crewai_files/resolution/resolver.py:164
↓ 19 callersFunctionrun_command
Run a shell command and return output. Args: cmd: Command to run as list of strings. cwd: Working directory for command. Ret
lib/devtools/src/crewai_devtools/cli.py:67
↓ 19 callersMethodset
Sync wrapper for aset.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:429
↓ 18 callersMethod_invoke_before_llm_call_hooks
Invoke before_llm_call hooks for an LLM call reaching the provider. This method should be called by native provider implementations before
lib/crewai/src/crewai/llms/base_llm.py:1019
↓ 18 callersMethodarun
Executes the tool asynchronously. Args: *args: Positional arguments for the tool. **kwargs: Keyword arguments for the
lib/crewai/src/crewai/tools/base_tool.py:568
↓ 18 callersMethodcreate
(self, **params)
lib/crewai/tests/test_tool_cache_default.py:93
↓ 18 callersFunctionregister_after_tool_call_hook
Register a global after_tool_call hook. Global hooks are added to all tool executions automatically. This is a convenience function for regis
lib/crewai/src/crewai/hooks/tool_hooks.py:245
↓ 18 callersMethodremember_many
Store multiple items in memory (non-blocking). The encoding pipeline runs in a background thread. This method returns immediately so
lib/crewai/src/crewai/memory/unified_memory.py:528
↓ 18 callersMethodto_pydantic
Convert text to pydantic. Args: current_attempt: The current attempt number for conversion retries. Returns:
lib/crewai/src/crewai/utilities/converter.py:84
↓ 18 callersMethodw_locked
Context manager for acquiring a write lock. Yields: None
lib/crewai/src/crewai/utilities/rw_lock.py:71
↓ 17 callersMethod_handle_tool_execution
Handle tool execution with proper event emission. Args: function_name: Name of the function to execute function_args:
lib/crewai/src/crewai/llms/base_llm.py:752
↓ 17 callersFunction_is_python_ref
(value: Any)
lib/crewai/src/crewai/project/json_loader.py:608
↓ 17 callersMethod_validate_tool_input
(self, tool_input: str | None)
lib/crewai/src/crewai/tools/tool_usage.py:939
↓ 17 callersMethodadd
(self, event: BaseEvent)
lib/crewai/tests/events/test_event_ordering.py:41
↓ 17 callersMethodaexecute_sync
Execute the task asynchronously using native async/await.
lib/crewai/src/crewai/task.py:640
↓ 17 callersMethodclose
Drain pending saves, flush storage, and shut down the background thread pool.
lib/crewai/src/crewai/memory/unified_memory.py:370
↓ 17 callersMethodcreate_status_content
Create standardized status content with consistent formatting.
lib/crewai/src/crewai/events/utils/console_formatter.py:159
↓ 17 callersMethodget_authorize_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:11
↓ 17 callersMethodget_by_step_number
Get a todo by its step number.
lib/crewai/src/crewai/utilities/planning_types.py:83
↓ 17 callersMethodget_issuer
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:20
↓ 17 callersMethodget_jwks_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:17
↓ 17 callersMethodget_token_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:14
↓ 17 callersFunctionin_temp_dir
()
lib/cli/tests/skills/test_main.py:20
↓ 17 callersMethodpublish
(self, is_public: bool, force: bool = False)
lib/cli/src/crewai_cli/tools/main.py:103
↓ 17 callersMethodread
(self)
lib/crewai-tools/tests/file_read_tool_test.py:29
↓ 17 callersFunctionsafe_get
GET a URL while validating each redirect target before following it. On success the hops are attached to the returned response's ``history`` and
lib/crewai-tools/src/crewai_tools/security/safe_requests.py:125
↓ 16 callersMethod_emit_call_failed_event
Emit LLM call failed event.
lib/crewai/src/crewai/llms/base_llm.py:654
↓ 16 callersFunction_event
(type: str, **kwargs)
lib/crewai/tests/test_event_record.py:15
↓ 16 callersFunction_make
Create a SkillFrontmatter with the given name.
lib/crewai/tests/skills/test_validation.py:14
↓ 16 callersFunction_snowflake_env
(monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/llms/snowflake/test_snowflake.py:18
↓ 16 callersMethodcall
Call OpenAI API (Chat Completions or Responses based on api setting). Args: messages: Input messages for the completion.
lib/crewai/src/crewai/llms/providers/openai/completion.py:581
↓ 16 callersMethodclose
Flush local shard to central and clean up.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:796
↓ 16 callersFunctiondetect_runtime_context
Best-effort detection of where this process is running. Separate from :func:`detect_coding_agent` because the two answer different questions.
lib/crewai-core/src/crewai_core/runtime_env.py:248
↓ 16 callersMethodgenerate_doc_id
Generate a unique document id based on the source reference and content. If the source reference is not provided, the content is used as the s
lib/crewai-tools/src/crewai_tools/rag/base_loader.py:27
↓ 16 callersFunctionget_before_tool_call_hooks
Get all registered global before_tool_call hooks. Returns: List of registered before hooks
lib/crewai/src/crewai/hooks/tool_hooks.py:276
↓ 16 callersMethodneighbors
Return neighbor IDs for a given edge type. Args: edge_type: The relationship type to query. Returns: List of
lib/crewai/src/crewai/state/event_record.py:87
↓ 16 callersMethodreplay
Replay the crew execution from a specific task.
lib/crewai/src/crewai/crew.py:2101
← previousnext →101–200 of 15,572, ranked by callers