Repository navigation
crewai subagents + knowledge - #110
Open
Shahid-Musabbar wants to merge 1 commit into
Open
Shahid-Musabbar wants to merge 1 commit into
Shahid-Musabbar wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Makes the CrewAI runner actually work and fixes how the CrewAI adapter handles sub-agents and knowledge.
opengap run -a crewainow generates a standalone Python script (exportToCrewAIScript) and runs it withpython3, using the CrewAI Python API directly. It no longer shells out tocrewai kickoff --config <file>.-p/--promptis now passed through to the CrewAI runner and added to the task description asUser request: .... It also prints a hint if neitherOPENAI_API_KEYnorANTHROPIC_API_KEYis set.manager_agent(allow_delegation=True).agents:becomes a workerAgent, and the crew usesProcess.hierarchical.Taskhas noagent=, so the manager assigns work at runtime.main_agent.kickoff(<description>)directly, with noTaskorCrew.agents/<name>/agent.yaml) keeps its own role, goal, backstory and model. A lightweight one uses itsdescriptionand inherits the default LLM..mdfile underknowledge/(recursively) is fed to CrewAI throughTextFileKnowledgeSource..txtand resolves paths from./knowledge, the script writes each doc as a temporary.txtfile into./knowledge/_gitagent_<random>/and deletes it on exit.Crewwhen there are sub-agents, and to the mainAgentwhen there are none.docs.mdis updated.Why
opengap run -a crewaididn't work. ThecrewaiCLI has nokickoffsubcommand, so the run failed with "No such command 'kickoff'" (#102). On top of that, the adapter exported sub-agents as flat, unconnected agents with no manager or hierarchy, never loadedknowledge/at all, and dropped--prompt(#109).Closes #102
Closes #109
How Tested
npm run buildpassesgitagent validatepasses on example agentsChecklist