Multi agent Orchestration

I have an use case:

need to develop 3 agents in single Crew:

Search agent based on serperdevtool

Coding agent

Testing agent

If user query is related to search, the crewai needs to execute only search agent and return results, not need to execute coding agent.
If user query related to writing code, needs to execute Coding agent and include testing agent for write and execute test cases for the coding agent output, and no need to execute the search agent.

Like ADK is there any concept of sub agents in CrewAI to this usecase? If not is there any other way to follow?

Based on your description, one potential solution is to use a CrewAI Flow and set up something like this:

Alternatively, you could try implementing the same logic using a Hierarchical Process.

You can find some relevant discussions on these topics here and here, plus plenty of other examples if you search around the forum.