MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions13,496 in github.com/crewAIInc/crewAI

↓ 3 callersMethodhandle_llm_stream_chunk
Handle LLM stream chunk event - display streaming text in a panel. Args: chunk: The new chunk of text received. accum
lib/crewai/src/crewai/events/utils/console_formatter.py:584
↓ 3 callersMethodincrement_delegations
Increment the delegations counter.
lib/crewai/src/crewai/task.py:1142
↓ 3 callersFunctioninitialize_if_git_available
Initialize a Git repository when Git is available.
lib/cli/src/crewai_cli/git.py:206
↓ 3 callersFunctioninject_a2a_server_methods
Inject A2A server methods onto an Agent instance. Adds a `to_agent_card(url: str) -> AgentCard` method to the agent that generates an A2A-com
lib/crewai/src/crewai/a2a/utils/agent_card.py:579
↓ 3 callersFunctioninstall_crew
Install the crew by running the UV command to lock and install.
lib/cli/src/crewai_cli/install_crew.py:40
↓ 3 callersMethodinterpolate_inputs_and_add_conversation_history
Interpolate inputs into the task description, expected output, and output file path. Add conversation history if present. Args:
lib/crewai/src/crewai/task.py:1057
↓ 3 callersMethodinvoke_async
Execute agent asynchronously with given inputs. This method is designed for use within async contexts, such as when the agent is call
lib/crewai/src/crewai/experimental/agent_executor.py:2893
↓ 3 callersMethodis_active
Check if this extension is active for the current request. An extension is active if the client declared support for it. Args:
lib/crewai/src/crewai/a2a/extensions/server.py:143
↓ 3 callersFunctionis_flow_method
Check if the object carries Flow method wrapper metadata.
lib/crewai/src/crewai/flow/dsl/_utils.py:46
↓ 3 callersMethodis_git_installed
Check if Git is installed and available in the system.
lib/cli/src/crewai_cli/git.py:41
↓ 3 callersFunctionis_interactive
Prompt only in an interactive terminal, never in non-interactive mode.
lib/cli/src/crewai_cli/input_prompt.py:48
↓ 3 callersFunctionis_replaying
Return True if the current context is dispatching a replayed event. Listeners with side effects (checkpoint writes, external API calls that s
lib/crewai/src/crewai/events/event_bus.py:73
↓ 3 callersMethodkickoff_for_each_async
Executes the Crew's workflow for each input asynchronously. Args: inputs: List of input dictionaries, one per execution.
lib/crewai/src/crewai/crew.py:1174
↓ 3 callersMethodlist_cached
Show locally installed skills.
lib/cli/src/crewai_cli/skills/main.py:294
↓ 3 callersMethodlist_crews
List all available crews.
lib/cli/src/crewai_cli/deploy/main.py:550
↓ 3 callersMethodlist_files
List all uploaded files. Returns: List of dictionaries with file information.
lib/crewai-files/src/crewai_files/uploaders/base.py:112
↓ 3 callersMethodlist_tools
List available tools from MCP server. Args: use_cache: Whether to use cached results. If None, uses client's cach
lib/crewai/src/crewai/mcp/client.py:374
↓ 3 callersFunctionload_jsonc_file
Load a JSON or JSONC file.
lib/crewai/src/crewai/project/json_loader.py:206
↓ 3 callersFunctionload_schema
Load a vendored A2UI JSON schema by name and version. Args: name: Schema name without extension, e.g. ``"server_to_client"``. ver
lib/crewai/src/crewai/a2a/extensions/a2ui/schema/__init__.py:37
↓ 3 callersFunctionload_skill_resources
Promote a skill to RESOURCES disclosure level. Catalogs available resource directories (scripts, references, assets). Args: skill: S
lib/crewai/src/crewai/skills/parser.py:159
↓ 3 callersFunctionmock_arxiv_response
()
lib/crewai-tools/tests/tools/arxiv_paper_tool_test.py:15
↓ 3 callersMethodobserve
Observe a step's result and decide on plan continuation. This runs after EVERY step execution — not just failures. Args:
lib/crewai/src/crewai/agents/planner_observer.py:113
↓ 3 callersMethodoff
Unregister an event handler for a specific event type. Args: event_type: The event class to stop listening for handle
lib/crewai/src/crewai/events/event_bus.py:368
↓ 3 callersMethodon
Decorator to register an event handler for a specific event type. Handlers can accept 2 or 3 arguments: - ``(source, event)`` — s
lib/crewai/src/crewai/events/event_bus.py:245
↓ 3 callersFunctionpick_one
Arrow-key single-select from plain labels. Returns: Selected index, or ``-1`` if cancelled.
lib/cli/src/crewai_cli/tui_picker.py:336
↓ 3 callersMethodprocess_files
Process multiple files according to constraints. Args: files: Dictionary mapping names to file inputs. Returns:
lib/crewai-files/src/crewai_files/processing/processor.py:158
↓ 3 callersMethodread_chunks
Stream file content in chunks without loading entirely into memory. Args: chunk_size: Size of each chunk in bytes. Yield
lib/crewai-files/src/crewai_files/core/sources.py:273
↓ 3 callersMethodremember
Store one or more items in memory. Pass a single string for synchronous save (returns the MemoryRecord). Pass a list of strings for n
lib/crewai/src/crewai/flow/runtime/__init__.py:931
↓ 3 callersMethodremember
Remember content; scope is relative to this scope's root.
lib/crewai/src/crewai/memory/memory_scope.py:102
↓ 3 callersMethodremove
(self, tool: T)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:52
↓ 3 callersMethodrender
({ ctx, id, x, y })
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:82
↓ 3 callersFunctionrender_template
Render a template file using ``{{placeholder}}`` replacements.
lib/cli/src/crewai_cli/utils.py:92
↓ 3 callersMethodreset
(self)
lib/crewai/src/crewai/knowledge/knowledge.py:162
↓ 3 callersMethodreset
(self)
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:91
↓ 3 callersMethodresetEdgesToDefault
(edgeIds = null, excludeEdges = [])
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1161
↓ 3 callersMethodreset_all
Reset the entire backing memory store, ignoring ``root_scope``.
lib/crewai/src/crewai/memory/unified_memory.py:1031
↓ 3 callersFunctionresolve_plus_client
Return the CrewAI AMP client to use, or build ``default``. Hosted runtimes install a client of their own through ``_create_plus_client_hook``
lib/crewai/src/crewai/utilities/agent_utils.py:66
↓ 3 callersFunctionresume_checkpoint
(location: str, checkpoint_id: str | None)
lib/cli/src/crewai_cli/checkpoint_cli.py:467
↓ 3 callersFunctionrun_crew
(**crew_kwargs)
lib/crewai/tests/test_tool_cache_default.py:110
↓ 3 callersFunctionrun_hooks
Execute an explicit list of hooks against a context. This is the shared engine used both by :func:`dispatch` (which resolves global + scoped
lib/crewai/src/crewai/hooks/dispatch.py:284
↓ 3 callersFunctionsanitize_tool_params_for_anthropic_strict
Sanitize a JSON schema for Anthropic strict tool use.
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:626
↓ 3 callersMethodsave_state
Persist the flow state after method completion. Args: flow_uuid: Unique identifier for the flow instance method_name:
lib/crewai/src/crewai/flow/persistence/base.py:48
↓ 3 callersMethodsearch
Search for memories by vector similarity with optional filters. Args: query_embedding: Embedding vector for the query.
lib/crewai/src/crewai/memory/storage/backend.py:56
↓ 3 callersMethodset_callbacks
Attempt to keep a single set of callbacks in litellm by removing old duplicates and adding new ones. Note: This only affects
lib/crewai/src/crewai/llm.py:2472
↓ 3 callersFunctionset_emission_counter
Set the emission counter to resume from a given value.
lib/crewai/src/crewai/events/base_events.py:59
↓ 3 callersMethodset_headers
(self, headers: dict[str, Any])
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/base.py:148
↓ 3 callersMethodset_runtime_state
Set the RuntimeState that will be passed to event handlers.
lib/crewai/src/crewai/events/event_bus.py:282
↓ 3 callersFunctionshould_suppress_console_output
Return True if console output should currently be suppressed.
lib/crewai-core/src/crewai_core/printer.py:27
↓ 3 callersMethodstream_turn
Append a user message and stream one conversational turn as frames.
lib/crewai/src/crewai/experimental/conversational_mixin.py:357
↓ 3 callersMethodsupports_stop_words
Check if the LLM supports stop words. Returns: True if the LLM supports stop words, False otherwise.
lib/crewai/src/crewai/llms/base_llm.py:433
↓ 3 callersMethodsupports_stop_words
Check if the model supports stop words.
lib/crewai/src/crewai/llms/providers/openai/completion.py:2642
↓ 3 callersMethodtest
Test and evaluate the Crew with the given inputs for n iterations. Uses concurrent.futures for concurrent execution.
lib/crewai/src/crewai/crew.py:2217
↓ 3 callersMethodto_config_dict
Serialize this LLM to a dict that can reconstruct it via ``LLM(**config)``. Returns the core fields that BaseLLM owns. Provider subclasses sh
lib/crewai/src/crewai/llms/base_llm.py:289
↓ 3 callersFunctionto_langchain
Convert a list of tools to CrewStructuredTool instances.
lib/crewai/src/crewai/tools/base_tool.py:666
↓ 3 callersMethodtool_usage_error
Records when a tool usage results in an error. Args: llm: The language model being used when the error occurred. agen
lib/crewai/src/crewai/telemetry/telemetry.py:629
↓ 3 callersFunctiontrack_delegation_if_needed
Track delegation if the tool is a delegation tool. Args: tool_name: Name of the tool being executed. tool_args: Arguments passed
lib/crewai/src/crewai/utilities/agent_utils.py:1304
↓ 3 callersMethodtrain
Trains the crew for a given number of iterations.
lib/crewai/src/crewai/crew.py:936
↓ 3 callersFunctionunregister_after_llm_call_hook
Unregister a specific global after_llm_call hook. Args: hook: The hook function to remove Returns: True if the hook was foun
lib/crewai/src/crewai/hooks/llm_hooks.py:301
↓ 3 callersFunctionunregister_before_llm_call_hook
Unregister a specific global before_llm_call hook. Args: hook: The hook function to remove Returns: True if the hook was fou
lib/crewai/src/crewai/hooks/llm_hooks.py:275
↓ 3 callersFunctionuses_openai_responses_api
Return whether provider/API should use OpenAI Responses file support.
lib/crewai-files/src/crewai_files/processing/constraints.py:349
↓ 3 callersFunctionvalidate_directory_name
Validate that a directory name matches the skill name. Args: skill_dir: Path to the skill directory. skill_name: The declared ski
lib/crewai/src/crewai/skills/validation.py:43
↓ 3 callersFunctionvalidate_pdf
Validate a PDF file against constraints. Args: file: The PDF file to validate. constraints: PDF constraints to validate against.
lib/crewai-files/src/crewai_files/processing/validators.py:288
↓ 3 callersFunctionversions_match
Return True when two skill versions refer to the same version. Versions arrive as ``1.2.0`` or ``v1.2.0`` depending on whether they came from
lib/crewai/src/crewai/skills/validation.py:18
↓ 3 callersMethodwait_for_batch_initialization
Wait for batch to be initialized. Args: timeout: Maximum time to wait in seconds (default: 2.0) Returns: Tru
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:488
↓ 3 callersMethodwith_disclosure_level
Create a new Skill at a different disclosure level. Args: level: The new disclosure level. instructions: Optional ins
lib/crewai/src/crewai/skills/models.py:151
↓ 2 callersMethod__del__
Ensure cleanup on deletion.
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:252
↓ 2 callersMethod__get__
Support the descriptor protocol for method binding. This allows the wrapped method to be properly bound to an instance when accessed
lib/crewai/src/crewai/flow/flow_wrappers.py:112
↓ 2 callersMethod__init__
( self, chunk_size: int = 3000, chunk_overlap: int = 300, separators: list[str
lib/crewai-tools/src/crewai_tools/rag/chunkers/text_chunker.py:53
↓ 2 callersMethod__init__
( self, chunk_size: int = 1200, chunk_overlap: int = 100, separators: list[str
lib/crewai-tools/src/crewai_tools/rag/chunkers/structured_chunker.py:5
↓ 2 callersMethod__init__
Initialize the CustomLLM with a predefined response. Args: response: The predefined response to return from call().
lib/crewai/tests/test_custom_llm.py:16
↓ 2 callersMethod__init__
(self, llm, tools)
lib/crewai/tests/agents/test_lite_agent.py:274
↓ 2 callersMethod__new__
(cls, *args: Any, **kwargs: Any)
lib/crewai/tests/tools/test_tool_failure.py:53
↓ 2 callersMethod_acall_responses
Async call to OpenAI Responses API.
lib/crewai/src/crewai/llms/providers/openai/completion.py:718
↓ 2 callersMethod_add_property_ordering
Add propertyOrdering to JSON schema for Gemini 2.0 compatibility. Gemini 2.0 models require an explicit propertyOrdering list to define
lib/crewai/src/crewai/llms/providers/gemini/completion.py:1457
↓ 2 callersMethod_add_skill_loader_tool
Add the internal loader used for request-scoped skill disclosure.
lib/crewai/src/crewai/agent/core.py:494
↓ 2 callersFunction_adelegate_to_a2a
Async version of _delegate_to_a2a.
lib/crewai/src/crewai/a2a/wrapper.py:1603
↓ 2 callersMethod_aexecute_without_timeout
Execute a task without a timeout asynchronously. Args: task_prompt: The prompt to send to the agent. task: The task b
lib/crewai/src/crewai/agent/core.py:1058
↓ 2 callersMethod_aexport_output
Async equivalent of ``_export_output`` — uses ``acall`` so the event loop is not blocked.
lib/crewai/src/crewai/task.py:1209
↓ 2 callersFunction_afetch_agent_card_cached
Cached async implementation of AgentCard fetching.
lib/crewai/src/crewai/a2a/utils/agent_card.py:227
↓ 2 callersFunction_afetch_agent_cards_concurrently
Fetch agent cards concurrently for multiple A2A agents using asyncio.
lib/crewai/src/crewai/a2a/wrapper.py:1436
↓ 2 callersMethod_agent_and_task
(self, code: str)
lib/crewai/tests/tools/test_tool_failure.py:1332
↓ 2 callersFunction_agent_kwargs_from_definition
( defn: dict[str, Any], path: Path | str, *, agent_class: type[Any] | None = None, resolve
lib/crewai/src/crewai/project/json_loader.py:955
↓ 2 callersMethod_ahandle_converse
Handle async non-streaming converse API call.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:1192
↓ 2 callersMethod_ahandle_human_feedback
Process human feedback asynchronously and refine answer. Args: formatted_answer: Initial agent result. Returns:
lib/crewai/src/crewai/experimental/agent_executor.py:3229
↓ 2 callersMethod_ainject_files_from_inputs
Async inject files into the last user message.
lib/crewai/src/crewai/experimental/agent_executor.py:3176
↓ 2 callersMethod_ainvoke_loop
Invoke the agent loop asynchronously and return the result.
lib/crewai/src/crewai/core/providers/human_input.py:54
↓ 2 callersMethod_ainvoke_loop_react
Execute agent loop asynchronously using ReAct text-based pattern. Returns: Final answer from the agent.
lib/crewai/src/crewai/agents/crew_agent_executor.py:1148
↓ 2 callersMethod_ainvoke_step_callback
Invoke step callback (async context). Args: formatted_answer: Current agent response.
lib/crewai/src/crewai/agents/crew_agent_executor.py:1475
↓ 2 callersFunction_aiter
()
lib/crewai/tests/test_llm_streaming_finish_reason.py:82
↓ 2 callersMethod_append_text_tool_calling_fallback_message
Add text tool-calling instructions after native tools are rejected.
lib/crewai/src/crewai/agents/crew_agent_executor.py:470
↓ 2 callersFunction_arrow_select_one
(labels: list[str])
lib/cli/src/crewai_cli/tui_picker.py:126
↓ 2 callersFunction_as_float
(value: Any)
lib/cli/src/crewai_cli/model_catalog.py:576
↓ 2 callersMethod_ask_llm_for_field
Query the LLM for a specific field value based on its description. Args: field_name: The name of the field to extract.
lib/crewai/src/crewai/utilities/training_converter.py:59
↓ 2 callersFunction_asummarize_chunks
Summarize multiple message chunks concurrently using asyncio. Args: chunks: List of message chunks to summarize. llm: LLM instanc
lib/crewai/src/crewai/utilities/agent_utils.py:967
↓ 2 callersMethod_attach_usage_aggregation_listener
Wire an ``LLMCallCompletedEvent`` listener for the duration of one ``kickoff_async`` call.
lib/crewai/src/crewai/flow/runtime/__init__.py:849
↓ 2 callersMethod_background_encode_batch
Run the encoding pipeline in a background thread with event emission. Both started and completed events are emitted here (in the background
lib/crewai/src/crewai/memory/unified_memory.py:581
↓ 2 callersFunction_bad_request
(message: str, param: str = "reasoning_effort")
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:50
↓ 2 callersMethod_begin_checkpoint
Emit the start event and return the invariant context for a checkpoint.
lib/crewai/src/crewai/state/runtime.py:229
↓ 2 callersMethod_build_and_validate_headers
(self, headers: dict[str, Any])
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/base.py:153
↓ 2 callersMethod_build_async_client
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:263
← previousnext →1,201–1,300 of 13,496, ranked by callers