MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,663 in github.com/crewAIInc/crewAI

↓ 1,333 callersMethodappend
Append new training data for a specific agent and iteration. Args: train_iteration: The training iteration number. ag
lib/crewai/src/crewai/utilities/training_handler.py:19
↓ 988 callersMethodget
Retrieve an auth scheme by key.
lib/crewai/src/crewai/a2a/auth/utils.py:52
↓ 877 callersMethodkickoff
Execute the crew's workflow. Args: inputs: Optional input dictionary for task interpolation. input_files: Optional di
lib/crewai/src/crewai/crew.py:1010
↓ 586 callersMethodjoin
(self)
lib/crewai/tests/test_flow_from_definition.py:226
↓ 269 callersMethodread_text
Read the file content as string.
lib/crewai-files/src/crewai_files/core/types.py:214
↓ 217 callersMethodinvoke
Execute agent with given inputs. When called from within an existing event loop (e.g., inside a Flow), this method returns a coroutin
lib/crewai/src/crewai/agents/agent_executor.py:3132
↓ 215 callersMethodemit
Emit an event to all registered handlers. If handlers have dependencies (registered with depends_on), they execute in dependency orde
lib/crewai/src/crewai/events/event_bus.py:572
↓ 207 callersMethodfrom_declaration
Build a runnable declarative flow from contents or a file path.
lib/crewai/src/crewai/flow/runtime/__init__.py:553
↓ 165 callersMethodrun
Executes the tool synchronously. Args: *args: Positional arguments for the tool. **kwargs: Keyword arguments for the
lib/crewai/src/crewai/tools/base_tool.py:559
↓ 165 callersMethodset
Store an auth scheme.
lib/crewai/src/crewai/a2a/auth/utils.py:47
↓ 164 callersFunctioninstall
(monkeypatch, amp: FakeAMP, configured_amp: str = "https://amp.test")
lib/cli/tests/experimental/test_eval_crew.py:152
↓ 158 callersMethodscoped_handlers
Context manager for temporary event handling scope. Useful for testing or temporary event handling. All handlers registered within th
lib/crewai/src/crewai/events/event_bus.py:832
↓ 155 callersMethodcall
High-level LLM call method. Args: messages: Input messages for the LLM. Can be a string or list of message d
lib/crewai/src/crewai/llm.py:1951
↓ 153 callersMethodpop
(self, index: int = -1)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:57
↓ 146 callersMethodappend
(self, tool: T)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:40
↓ 139 callersMethodupdate
Update an existing memory record by ID. Args: record_id: ID of the record to update. content: New content; re-embedde
lib/crewai/src/crewai/memory/unified_memory.py:862
↓ 137 callersMethodget
(self, url: str | bytes, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/security/safe_requests.py:68
↓ 124 callersMethod_run
(self, url: str)
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:269
↓ 121 callersMethodsleep
(self, seconds: float)
lib/cli/tests/authentication/test_auth_main.py:23
↓ 120 callersMethodprint
Print ``content`` with optional color, honoring suppression context.
lib/crewai-core/src/crewai_core/printer.py:78
↓ 116 callersMethodextend
(self, tools: list[T])
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:44
↓ 115 callersMethodprint
Print to console. Simplified to only handle panel-based output.
lib/crewai/src/crewai/events/utils/console_formatter.py:185
↓ 114 callersMethodcount
Count records in scope (and subscopes). Args: scope_prefix: Optional scope path (None = all). Returns: Numbe
lib/crewai/src/crewai/memory/storage/backend.py:168
↓ 106 callersMethodhandle_turn
Run a turn with the history of this experimental Agent conversation. ``kwargs`` are forwarded to ``Flow.handle_turn``, including session and
lib/crewai/src/crewai/agent/core.py:1952
↓ 97 callersMethodwait
(self)
lib/cli/tests/test_cli.py:426
↓ 90 callersMethodflush
(self)
lib/crewai/tests/utilities/test_console_formatter_pause_resume.py:164
↓ 84 callersMethodjson
JSON string of the final task's output. None when that output could not be converted to its ``output_json`` model.
lib/crewai/src/crewai/crews/crew_output.py:60
↓ 84 callersMethodkickoff
Execute the agent with the given messages using the AgentExecutor. This method provides standalone agent execution without requiring a Crew.
lib/crewai/src/crewai/agent/core.py:1981
↓ 78 callersMethodkeys
Return keys for dict unpacking.
lib/crewai-files/src/crewai_files/core/types.py:226
↓ 76 callersFunctionrecord_last_run
(directory: Path, execution_id: str = EXECUTION_ID, **fields)
lib/cli/tests/experimental/test_eval_crew.py:140
↓ 74 callersMethodecho
(self)
lib/crewai/tests/test_flow_conversation.py:1553
↓ 74 callersMethodinfo
Return scope info for path. Args: path: Scope path to get info for. If None and root_scope is set, defaults to ro
lib/crewai/src/crewai/memory/unified_memory.py:969
↓ 74 callersFunctionparse
Read ``data`` as a workbook, by its bytes rather than its name. Args: data: The file's content. filename: The file's name; ``.csv
lib/crewai-files/src/crewai_files/spreadsheets/reading.py:164
↓ 73 callersMethodemit_log
(self, *args: Any, **kwargs: Any)
lib/crewai/src/crewai/telemetry/tracing/session.py:187
↓ 69 callersFunctiondone
(gate="passed", grades=None, eval_config=None)
lib/cli/tests/experimental/test_eval_crew.py:114
↓ 68 callersMethodload
(self, content: SourceContent, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/rag/base_loader.py:24
↓ 67 callersMethodacall
Async high-level LLM call method. Args: messages: Input messages for the LLM. Can be a string or list of mes
lib/crewai/src/crewai/llm.py:2093
↓ 67 callersMethodopen
(nodeName, metadata)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1410
↓ 67 callersMethodwrite
(self)
lib/crewai/tests/test_llm_overlay.py:604
↓ 66 callersMethod_handle_action_event
Generic handler for action events (LLM calls, tool usage). Args: event_type: Type of the event. source: Source object
lib/crewai/src/crewai/events/listeners/tracing/trace_listener.py:967
↓ 66 callersFunction_make_tool
Return a NL2SQLTool wired to an in-memory SQLite DB. Schema-introspection is patched out so we can create the tool without a real PostgreSQL
lib/crewai-tools/tests/tools/test_nl2sql_security.py:23
↓ 64 callersFunctioncreate_model_from_schema
Create a Pydantic model from a JSON schema. This function takes a JSON schema as input and dynamically creates a Pydantic model class based o
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:811
↓ 64 callersMethodread
Read the file content as bytes.
lib/crewai-files/src/crewai_files/core/types.py:199
↓ 63 callersMethodakickoff
Native async kickoff method using async task execution throughout. Unlike kickoff_async which wraps sync kickoff in a thread, this method
lib/crewai/src/crewai/crew.py:1230
↓ 63 callersMethodresolve
Convert MCP server references/configs to CrewAI tools.
lib/crewai/src/crewai/mcp/tool_resolver.py:81
↓ 62 callersMethodadd
Add an event to the record and wire its edges. Args: event: The event to insert. Returns: The created node.
lib/crewai/src/crewai/state/event_record.py:110
↓ 62 callersMethodclear
Remove all nodes from the record under the write lock.
lib/crewai/src/crewai/state/event_record.py:214
↓ 61 callersMethodadd
( self, *, ids: list[str], embeddings: list[list[float]], documents: l
lib/crewai-tools/tests/rag/test_rag_core_jsonl.py:39
↓ 61 callersFunctionsanitize_tool_name
Sanitize tool name for LLM provider compatibility. Normalizes Unicode, splits camelCase, lowercases, replaces invalid characters with undersc
lib/crewai/src/crewai/utilities/string_utils.py:26
↓ 60 callersMethodformat
Format this match as a human-readable string including metadata. Returns: A multi-line string with score, content, categories, an
lib/crewai/src/crewai/memory/types.py:92
↓ 59 callersFunction_build_executor
Create an AgentExecutor without validation — for unit tests. Uses model_construct to skip Pydantic validators so plain Mock() objects are acc
lib/crewai/tests/agents/test_agent_executor.py:27
↓ 59 callersMethodprint_panel
Print a panel with consistent formatting if verbose is enabled.
lib/crewai/src/crewai/events/utils/console_formatter.py:208
↓ 59 callersMethodrun_crew
Execute the crew and capture the result.
lib/crewai/src/crewai/crew.py:1036
↓ 57 callersMethodfail
(self)
lib/crewai/tests/telemetry/test_conversation_spans.py:130
↓ 57 callersMethodflow_definition
Return the static Flow Definition built from this Flow class.
lib/crewai/src/crewai/flow/runtime/__init__.py:544
↓ 56 callersFunctionllm_overlay
Route agent roles and models to models for the duration of the block. Args: mapping: ``{role: model}`` and ``{"model:<model>": model}`` (
lib/crewai/src/crewai/llm_overlay.py:128
↓ 54 callersFunctionwrite
(path: Path, text: str)
lib/cli/tests/test_api_keys.py:33
↓ 52 callersMethodget
(self, key: str, default: Any = None)
lib/crewai/src/crewai/utilities/prompts.py:32
↓ 51 callersFunctionbuild_embedder
(spec: BaseEmbeddingsProvider[T])
lib/crewai/src/crewai/rag/embeddings/factory.py:284
↓ 50 callersMethod_validate_query
Raise ValueError if *sql_query* is not permitted under the current config. Splits the query on semicolons and validates each statement
lib/crewai-tools/src/crewai_tools/tools/nl2sql/nl2sql_tool.py:309
↓ 49 callersMethodexecute_sync
Execute the task synchronously.
lib/crewai/src/crewai/task.py:656
↓ 48 callersFunctionreader
(llm: BaseLLM, **kwargs: Any)
lib/crewai/tests/agents/test_agent_spreadsheets.py:190
↓ 48 callersMethodrun
Run all checks. Later checks are skipped when earlier ones make them impossible (e.g. no pyproject.toml → no lockfile check).
lib/cli/src/crewai_cli/deploy/validate.py:305
↓ 48 callersMethodrun
(self)
lib/crewai/tests/agents/test_conversation.py:256
↓ 46 callersMethodrun
(step: int)
lib/crewai/tests/tools/test_tool_failure.py:2355
↓ 45 callersFunctioncrew_project
(folder: Path)
lib/cli/tests/test_api_keys.py:46
↓ 45 callersMethodkickoff_async
(self, prompt)
lib/crewai/tests/telemetry/test_wharf_runner.py:38
↓ 44 callersMethodcall
( self, messages: Any, tools: Any = None, callbacks: Any = None, avail
lib/crewai/tests/llms/test_base_llm.py:13
↓ 44 callersFunctionfetch_result
Build the (body, content_type, final_url) tuple safe_get_bounded returns.
lib/crewai-tools/tests/url_read_tool_test.py:135
↓ 44 callersMethodget
(self, *, where: dict[str, Any], limit: int)
lib/crewai-tools/tests/rag/test_rag_core_jsonl.py:36
↓ 43 callersMethodflush
(self, timeout_millis=30000)
lib/crewai/tests/telemetry/test_enterprise_session_compatibility.py:44
↓ 43 callersMethodget
Sync wrapper for aget.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:416
↓ 43 callersFunctionstopped
(reason: str)
lib/cli/tests/test_run_usage.py:104
↓ 43 callersFunctionwrite
(path: Path, text: str)
lib/cli/tests/test_run_usage.py:170
↓ 42 callersFunction_end_span
( ctx: TelemetryExecutionContext, event_id: str | None, event: Any, attributes: dict[str, Any]
lib/crewai/src/crewai/telemetry/tracing/handlers.py:808
↓ 41 callersMethod_prepare_completion_params
Prepare parameters for the completion call. Args: messages: Input messages for the LLM tools: Optional list of tool s
lib/crewai/src/crewai/llm.py:760
↓ 41 callersMethodcopy
Creates a deep copy of the Task while preserving its original class type. Args: agents: List of agents available for the task.
lib/crewai/src/crewai/task.py:1258
↓ 41 callersMethodfeature_usage_span
Records that a feature was used. One span = one count. Args: feature: Feature identifier, e.g. "planning:creation",
lib/crewai/src/crewai/telemetry/telemetry.py:1303
↓ 41 callersFunctionget_execution_uuid
Return the active execution uuid, if any.
lib/crewai/src/crewai/execution.py:65
↓ 41 callersMethodlog
Log a message with timestamp if verbose mode is enabled. Args: level: The log level (e.g., 'info', 'warning', 'error').
lib/crewai/src/crewai/utilities/logger.py:17
↓ 41 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:1354
↓ 41 callersMethodsave
(self, documents)
lib/crewai/tests/agents/test_agent.py:1890
↓ 39 callersMethodparse
Parse {% js 'script.js' %} tag. Args: parser: Jinja2 parser instance. Returns: Output node with rendered scr
lib/crewai/src/crewai/flow/visualization/renderers/interactive.py:58
↓ 39 callersMethodslice
Retrieve a prompt slice by key. Args: slice: The key of the prompt slice to retrieve. Returns: The prompt sl
lib/crewai/src/crewai/utilities/i18n.py:56
↓ 39 callersMethodsubmit
Schedule an already-registered job; safe from a foreground thread.
lib/crewai/src/crewai/experimental/flow_jobs.py:265
↓ 38 callersFunctionask
(book=BOOK, name="Q3.xlsx", **kwargs)
lib/crewai-files/tests/spreadsheets/test_answers.py:61
↓ 37 callersMethod_make_request
( self, method: HttpMethod, endpoint: str, *, json: Any = None,
lib/crewai-core/src/crewai_core/plus_api.py:301
↓ 37 callersMethod_unsubscribe
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:2633
↓ 37 callersFunctionat_a_terminal
A person at a terminal who gives ANSWERS, in order; returns the prompts shown. Call it in the test itself: pytest swaps `sys.stdout` after fixtur
lib/cli/tests/test_api_keys.py:115
↓ 37 callersFunctioncrewai_run
(*args: str)
lib/cli/tests/test_run_usage.py:166
↓ 36 callersMethodconnect
Connect to MCP server and initialize session. Returns: Self for method chaining. Raises: MCPAuthenticationEr
lib/crewai/src/crewai/mcp/client.py:153
↓ 36 callersMethodfrom_pending
Create a Flow instance from a pending feedback state. This classmethod is used to restore a flow that was paused waiting for async hu
lib/crewai/src/crewai/flow/runtime/__init__.py:1265
↓ 35 callersMethodmonotonic
(self)
lib/cli/tests/authentication/test_auth_main.py:20
↓ 35 callersMethodraise_for_status
Mimic requests' error-status behavior.
lib/crewai-tools/tests/url_read_tool_test.py:37
↓ 35 callersFunctionstarted
(kind: str)
lib/cli/tests/test_run_usage.py:100
↓ 35 callersFunctionvalidate_url
Validate that a URL is safe to fetch. Blocks ``file://`` scheme entirely. For ``http``/``https``, resolves DNS and checks that the target IP
lib/crewai-tools/src/crewai_tools/security/safe_path.py:295
↓ 34 callersFunction_app_with_plan
()
lib/cli/tests/test_crew_run_tui.py:67
↓ 34 callersMethod_emit_call_completed_event
Emit LLM call completed event.
lib/crewai/src/crewai/llms/base_llm.py:846
↓ 34 callersFunctionbuild
(model: str = "gpt-5.6-sol", **kwargs)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:63
↓ 34 callersMethodconfirm
(self)
lib/crewai/tests/test_flow_from_definition.py:140
next →1–100 of 19,663, ranked by callers