Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
13,938 in github.com/crewAIInc/crewAI
⨍
Functions
13,938
◇
Types & classes
2,826
↳
Endpoints
792
↓ 4 callers
Method
clear_user_settings
Clear all user settings.
lib/crewai-core/src/crewai_core/settings.py:222
↓ 4 callers
Method
close
Record that the response was closed.
lib/crewai-tools/tests/url_read_tool_test.py:43
↓ 4 callers
Function
closest_name
Nearest candidate name to a likely typo, if one is close enough.
lib/cli/src/crewai_cli/input_prompt.py:42
↓ 4 callers
Method
connect
Start the MCP server process and establish connection. Returns: Self for method chaining. Raises: Connection
lib/crewai/src/crewai/mcp/transports/stdio.py:69
↓ 4 callers
Method
content
Printable text content for chunk-like consumers.
lib/crewai/src/crewai/types/streaming.py:45
↓ 4 callers
Function
convert_oneof_to_anyof
Convert oneOf to anyOf for OpenAI compatibility. OpenAI's Structured Outputs support anyOf better than oneOf. This recursively converts all o
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:383
↓ 4 callers
Function
convert_with_instructions
Convert a result string to a Pydantic model or JSON using instructions. Args: result: The result string to convert. model: The Py
lib/crewai/src/crewai/utilities/converter.py:335
↓ 4 callers
Function
create_client
Create a client from configuration using the appropriate factory. Args: config: The RAG client configuration. Returns: The c
lib/crewai/src/crewai/rag/factory.py:41
↓ 4 callers
Function
create_frame_streaming_state
Create state for a scoped public frame stream.
lib/crewai/src/crewai/utilities/streaming.py:208
↓ 4 callers
Function
create_mock_llm
Create a mock LLM that returns a simple response. The mock includes all attributes required by the telemetry system, particularly the 'model'
lib/crewai/tests/telemetry/test_flow_crew_span_integration.py:30
↓ 4 callers
Function
create_research_tools
Create research tools for testing structured planning.
lib/crewai/tests/utilities/test_structured_planning.py:316
↓ 4 callers
Function
create_resolver
Create a configured FileResolver. Args: provider: Optional provider name to load default threshold from constraints. prefer_uploa
lib/crewai-files/src/crewai_files/resolution/resolver.py:652
↓ 4 callers
Method
crew
(self)
lib/crewai/tests/test_crew.py:4506
↓ 4 callers
Function
crew_factory
(simple_agent_factory, simple_task_factory)
lib/crewai/tests/test_crew_thread_safety.py:35
↓ 4 callers
Method
crew_status_by_name
(self, project_name: str)
lib/crewai-core/src/crewai_core/plus_api.py:331
↓ 4 callers
Method
crew_status_by_uuid
(self, uuid: str)
lib/crewai-core/src/crewai_core/plus_api.py:336
↓ 4 callers
Function
ensure_all_properties_required
Ensure all properties are in the required array for OpenAI strict mode. OpenAI's strict structured outputs require all properties to be listed
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:421
↓ 4 callers
Method
env_context_span
Records the coding tool environment context.
lib/crewai/src/crewai/telemetry/telemetry.py:1118
↓ 4 callers
Method
evaluate
( self, agent: Agent | BaseAgent, execution_trace: dict[str, Any], final_outpu
lib/crewai/src/crewai/experimental/evaluation/metrics/reasoning_metrics.py:48
↓ 4 callers
Method
evaluate
(self, agent, task, execution_trace, final_output)
lib/crewai/tests/experimental/evaluation/test_agent_evaluator.py:239
↓ 4 callers
Method
exec_module
(self, module: ModuleType)
lib/crewai/src/crewai/cli/__init__.py:39
↓ 4 callers
Method
execute_task
( self, task: Any, context: str | None = None, tools: list[BaseTool] | None =
lib/crewai/tests/agents/agent_builder/test_base_agent.py:11
↓ 4 callers
Method
fetch_arxiv_data
( self, search_query: str, max_results: int )
lib/crewai-tools/src/crewai_tools/tools/arxiv_paper_tool/arxiv_paper_tool.py:78
↓ 4 callers
Method
finalize
()
lib/crewai/tests/tracing/test_tracing.py:976
↓ 4 callers
Function
find_json_project_file
Return ``stem.jsonc`` or ``stem.json``, preferring JSONC.
lib/crewai/src/crewai/project/json_loader.py:173
↓ 4 callers
Function
format_sandbox_error
Restate a containment rejection with a tool-specific remedy. Rejections from :func:`validate_file_path` end by advertising the process-wide e
lib/crewai-tools/src/crewai_tools/security/safe_path.py:51
↓ 4 callers
Method
from_tool_name
Create a MergeAgentHandlerTool from a tool name. Args: tool_name: Name of the tool (e.g., "linear__create_issue")
lib/crewai-tools/src/crewai_tools/tools/merge_agent_handler_tool/merge_agent_handler_tool.py:145
↓ 4 callers
Function
generate_crew_chat_inputs
Generate the ChatInputs required for the crew by analyzing the tasks and agents. Args: crew: The crew object containing tasks and agents.
lib/crewai/src/crewai/utilities/crew_chat.py:355
↓ 4 callers
Function
get_conversation_messages
Read message history from flow state or the internal fallback buffer.
lib/crewai/src/crewai/flow/conversation.py:97
↓ 4 callers
Function
get_env_context
()
lib/crewai/src/crewai/utilities/env.py:28
↓ 4 callers
Method
get_evaluation_results
(self)
lib/crewai/src/crewai/experimental/evaluation/agent_evaluator.py:192
↓ 4 callers
Method
get_failed_todos
Get all failed todos. Returns: List of failed TodoItem objects.
lib/crewai/src/crewai/utilities/planning_types.py:169
↓ 4 callers
Function
get_project_name
Return the project name from ``pyproject.toml``.
lib/crewai-core/src/crewai_core/project.py:207
↓ 4 callers
Method
get_record
Return a single record by ID, or None if not found. Args: record_id: The unique ID of the record. Returns: T
lib/crewai/src/crewai/memory/storage/backend.py:106
↓ 4 callers
Method
get_scope_info
Get information about a scope. Args: scope: The scope path. Returns: ScopeInfo with record count, categories
lib/crewai/src/crewai/memory/storage/backend.py:135
↓ 4 callers
Function
get_supported_content_types
Get supported MIME type prefixes for a provider. Args: provider: Provider name string. api: Optional API variant (e.g., "response
lib/crewai-files/src/crewai_files/processing/constraints.py:363
↓ 4 callers
Function
guardrail
(result: TaskOutput)
lib/crewai/tests/test_task_guardrails.py:53
↓ 4 callers
Function
handle_output_parser_exception
Handle OutputParserError by updating messages and formatted_answer. Args: e: The OutputParserError that occurred messages: List o
lib/crewai/src/crewai/utilities/agent_utils.py:743
↓ 4 callers
Function
handle_tool_failure
Apply the effective policy to a failure a tool just reported. Records it on the agent and emits :class:`ToolFailureDetectedEvent`. Returns th
lib/crewai/src/crewai/tools/tool_failure.py:324
↓ 4 callers
Method
has_tool_outputs
Check if there are any built-in tool outputs.
lib/crewai/src/crewai/llms/providers/openai/completion.py:166
↓ 4 callers
Method
initialize
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1997
↓ 4 callers
Method
initialize_for_first_time_user
Check if this is first time and initialize collection.
lib/crewai/src/crewai/events/listeners/tracing/first_time_trace_handler.py:30
↓ 4 callers
Method
invoke
Execute the agent with given inputs. Args: inputs: Input dictionary containing prompt variables. Returns: Di
lib/crewai/src/crewai/agents/crew_agent_executor.py:208
↓ 4 callers
Function
is_inside_event_loop
Check if code is currently running inside an asyncio event loop. This is used to detect when code is being called from within an async context
lib/crewai/src/crewai/utilities/agent_utils.py:155
↓ 4 callers
Function
is_native_tool_calling_unsupported_error
Return whether an error means native tool calling is unavailable.
lib/crewai/src/crewai/utilities/agent_utils.py:1440
↓ 4 callers
Function
is_registry_ref
Return True if *value* looks like a registry reference (@org/name).
lib/crewai/src/crewai/skills/registry.py:41
↓ 4 callers
Function
is_tool_call_list
Check if a response from the LLM is a list of tool calls. Supports OpenAI, Anthropic, Bedrock, and Gemini formats. Args: response: T
lib/crewai/src/crewai/utilities/agent_utils.py:1379
↓ 4 callers
Method
isatty
(self)
lib/crewai/tests/telemetry/test_coding_agent_detection.py:367
↓ 4 callers
Method
list_templates
List available templates with an interactive selector to install.
lib/cli/src/crewai_cli/remote_template/main.py:45
↓ 4 callers
Method
list_triggers
List all available triggers from integrations.
lib/cli/src/crewai_cli/triggers/main.py:23
↓ 4 callers
Method
load
(self, source_content: SourceContent, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/rag/loaders/mdx_loader.py:18
↓ 4 callers
Method
load
(self, source_content: SourceContent, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/rag/loaders/csv_loader.py:11
↓ 4 callers
Method
load
Load all stored task outputs. Returns: List of task output dictionaries, or None if no outputs exist.
lib/crewai/src/crewai/utilities/task_output_storage_handler.py:82
↓ 4 callers
Function
load_crew_from_definition
Load a ``Crew`` from an in-memory JSON/YAML crew definition.
lib/crewai/src/crewai/project/crew_loader.py:40
↓ 4 callers
Function
load_from_url
Load content from a URL. Args: url: The URL to fetch content from kwargs: Additional keyword arguments (can include 'headers' ove
lib/crewai-tools/src/crewai_tools/rag/loaders/utils.py:6
↓ 4 callers
Function
load_skill_instructions
Promote a skill to INSTRUCTIONS disclosure level. Reads the full SKILL.md body text. Args: skill: Skill at METADATA level. Retu
lib/crewai/src/crewai/skills/parser.py:129
↓ 4 callers
Function
load_skills
Load skill inputs into de-duplicated Skill objects. Preserves first-seen order when multiple inputs resolve to the same skill name. Registry
lib/crewai/src/crewai/skills/loader.py:210
↓ 4 callers
Method
log_success_event
Log successful LLM API call and track token usage.
lib/crewai/src/crewai/utilities/token_counter_callback.py:37
↓ 4 callers
Method
mark_failed
Mark a todo as failed by step number.
lib/crewai/src/crewai/utilities/planning_types.py:104
↓ 4 callers
Function
mock_driver_with_html
(html_content)
lib/crewai-tools/tests/tools/selenium_scraping_tool_test.py:12
↓ 4 callers
Function
normalize_package_name
Normalize a pyproject project.name into a Python package directory name. Mirrors the rules in ``crewai.cli.create_crew.create_crew`` so the v
lib/cli/src/crewai_cli/deploy/validate.py:111
↓ 4 callers
Method
on_tool_use_finished
( self, tool: Any, tool_calling: ToolCalling | InstructorToolCalling, from_cac
lib/crewai/src/crewai/tools/tool_usage.py:1014
↓ 4 callers
Method
origin_url
Get the Git repository's remote URL.
lib/cli/src/crewai_cli/git.py:191
↓ 4 callers
Function
parse
Parse agent output text into AgentAction or AgentFinish. Expects output to be in one of two formats. If the output signals that an action sh
lib/crewai/src/crewai/agents/parser.py:62
↓ 4 callers
Method
parseColor
(color)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:274
↓ 4 callers
Function
parse_skill_md
Read and parse a SKILL.md file. Args: path: Path to the SKILL.md file. Returns: Tuple of (SkillFrontmatter, body text).
lib/crewai/src/crewai/skills/parser.py:76
↓ 4 callers
Function
parse_tools
Parse tools to be used for the task. Args: tools: List of tools to parse. Returns: List of structured tools. Raises:
lib/crewai/src/crewai/utilities/agent_utils.py:172
↓ 4 callers
Method
plot
Create interactive HTML visualization of Flow structure. Args: filename: Output HTML filename (default: "crewai_flow.html").
lib/crewai/src/crewai/flow/runtime/__init__.py:3865
↓ 4 callers
Function
pop_event_scope
Pop an event entry from the scope stack.
lib/crewai/src/crewai/events/event_context.py:185
↓ 4 callers
Function
prepare_kickoff
Prepare crew for kickoff execution. Handles before callbacks, event emission, task handler reset, input interpolation, task callbacks, agent
lib/crewai/src/crewai/crews/utils.py:243
↓ 4 callers
Function
process_guardrail
Process the guardrail for the agent output. Args: output: The output to validate with the guardrail guardrail: The guardrail to v
lib/crewai/src/crewai/utilities/guardrail.py:123
↓ 4 callers
Function
prompt_for_inputs
Prompt for each name and return ``{name: value}``. ``describe(name)`` returns an optional hint shown dim above the prompt (used by flows to s
lib/cli/src/crewai_cli/input_prompt.py:53
↓ 4 callers
Method
prune
Remove old checkpoints, keeping at most *max_keep* per branch. Args: location: The storage destination passed to ``checkpoint``.
lib/crewai/src/crewai/state/provider/core.py:64
↓ 4 callers
Function
prune_checkpoints
( location: str, keep: int | None, older_than: str | None, dry_run: bool = False )
lib/cli/src/crewai_cli/checkpoint_cli.py:691
↓ 4 callers
Function
record
(method_name: str)
lib/crewai/tests/test_flow.py:1523
↓ 4 callers
Method
record
(cls, tool_name: str, start: float, end: float)
lib/crewai/tests/agents/test_native_tool_calling.py:93
↓ 4 callers
Function
register_cleanup
Register a cleanup callback on the streaming output. Ensures the event handler is unregistered even if aclose()/close() is called before iter
lib/crewai/src/crewai/utilities/streaming.py:400
↓ 4 callers
Function
reportable_failure
Return the failure to attach to ``ToolUsageFinishedEvent``. ``None`` under :attr:`ToolFailurePolicy.IGNORE`, so that policy really does surfa
lib/crewai/src/crewai/tools/tool_failure.py:304
↓ 4 callers
Method
request_human_input
Request human input during tool hook execution. This method pauses live console updates, displays a prompt to the user, waits for the
lib/crewai/src/crewai/hooks/tool_hooks.py:86
↓ 4 callers
Method
reset
Reset all settings to default values.
lib/crewai-core/src/crewai_core/settings.py:227
↓ 4 callers
Function
resolve_ref
Return the Python symbol named by a project definition field.
lib/crewai/src/crewai/utilities/declarative_refs.py:41
↓ 4 callers
Method
sanitize_tool_name
Sanitize tool name for API compatibility.
lib/crewai/src/crewai/agents/agent_adapters/base_tool_adapter.py:38
↓ 4 callers
Function
sanitize_tool_params_for_openai_strict
Sanitize a JSON schema for OpenAI strict function calling.
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:615
↓ 4 callers
Method
save_pending_feedback
(self, flow_uuid, context, state_data)
lib/crewai/tests/test_flow_from_definition.py:3400
↓ 4 callers
Method
scope
Return a scoped view of this memory.
lib/crewai/src/crewai/memory/unified_memory.py:898
↓ 4 callers
Function
serialize_guardrail_for_json
Serialize a single guardrail value for JSON checkpointing. String descriptions are preserved; callable references cannot be JSON-serialized a
lib/crewai/src/crewai/utilities/guardrail.py:12
↓ 4 callers
Function
serialize_guardrails_for_json
Serialize a guardrails value (single or sequence) for JSON checkpointing. Dropped callables are filtered out of lists rather than emitted as ``No
lib/crewai/src/crewai/utilities/guardrail.py:34
↓ 4 callers
Function
serialize_model_class
Serialize a ``type[BaseModel]`` field value as its JSON schema. Args: value: A ``type[BaseModel]`` subclass, ``None``, or another union m
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:795
↓ 4 callers
Method
set_tracer
Mark telemetry live (idempotent). Deliberately does not install a global TracerProvider. Doing so made every OTel-instrumented librar
lib/crewai-core/src/crewai_core/telemetry.py:243
↓ 4 callers
Function
should_auto_collect_first_time_traces
True if we should auto-collect traces for first-time user. Returns: True if first-time user AND telemetry not disabled AND tracing not ex
lib/crewai/src/crewai/events/listeners/tracing/utils.py:444
↓ 4 callers
Method
should_render_failure_panel
Whether a reported failure should print its own red panel. A tool that *raised* already printed one via ``ToolUsageErrorEvent``, so o
lib/crewai/src/crewai/events/utils/console_formatter.py:505
↓ 4 callers
Method
should_render_success_panel
Whether a finished tool call should print the green panel. A failed call must not read as successful, so the red panel replaces it.
lib/crewai/src/crewai/events/utils/console_formatter.py:497
↓ 4 callers
Method
skill
Return a portable Markdown skill for authoring Flow declarations.
lib/crewai/src/crewai/flow/flow_definition.py:857
↓ 4 callers
Method
switch
(self, org_id: str)
lib/cli/src/crewai_cli/organization/main.py:53
↓ 4 callers
Function
update_template_dependencies
Update crewai dependency versions in CLI template pyproject.toml files. Uses simple string replacement instead of TOML parsing because templa
lib/devtools/src/crewai_devtools/cli.py:651
↓ 4 callers
Function
validate_model
Validate and convert a JSON string to a Pydantic model or dict. Args: result: The JSON string to validate and convert. model: The
lib/crewai/src/crewai/utilities/converter.py:261
↓ 4 callers
Function
validate_text
Validate a text file against general constraints. Args: file: The text file to validate. constraints: Provider constraints to val
lib/crewai-files/src/crewai_files/processing/validators.py:445
↓ 4 callers
Function
wrap_file_source
Wrap a FileSource in the appropriate typed FileInput wrapper. Args: source: The file source to wrap. Returns: Typed FileInpu
lib/crewai-files/src/crewai_files/resolution/utils.py:19
↓ 3 callers
Method
__del__
Ensure cleanup on deletion.
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:252
↓ 3 callers
Method
__init__
Initialize the exception. Args: message: Error message describing the issue. file_name: Optional name of the file tha
lib/crewai-files/src/crewai_files/processing/exceptions.py:25
← previous
next →
901–1,000 of 13,938, ranked by callers