Skip to content

Commit

Permalink
Genesis agency notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
VRSEN committed Jan 14, 2024
1 parent 9f11845 commit 0b92c31
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions notebooks/genesis_agency.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2024-01-11T04:14:26.736327Z",
"start_time": "2024-01-11T04:14:26.723533Z"
"end_time": "2024-01-11T05:42:05.498363Z",
"start_time": "2024-01-11T05:42:05.482640Z"
}
},
"outputs": [],
Expand All @@ -30,8 +30,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-01-11T04:14:27.063630Z",
"start_time": "2024-01-11T04:14:26.881702Z"
"end_time": "2024-01-11T05:42:05.793832Z",
"start_time": "2024-01-11T05:42:05.621095Z"
}
},
"id": "85f1c8fb6aab6421",
Expand All @@ -41,14 +41,25 @@
"cell_type": "code",
"outputs": [],
"source": [
"from agency_swarm.agents.genesis import AgentCreator, ToolCreator\n",
"from agency_swarm import set_openai_key\n",
"set_openai_key(\"YOUR_OPENAI_API_KEY\")"
],
"metadata": {
"collapsed": false
},
"id": "1ee6f9992fb209c4"
},
{
"cell_type": "code",
"outputs": [],
"source": [
"from agency_swarm.agency.genesis import GenesisAgency"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-01-11T04:14:27.763148Z",
"start_time": "2024-01-11T04:14:27.284715Z"
"end_time": "2024-01-11T05:42:06.237671Z",
"start_time": "2024-01-11T05:42:05.796187Z"
}
},
"id": "6cafc0d9a51ed4c9",
Expand All @@ -69,21 +80,13 @@
}
],
"source": [
"agent_creator = AgentCreator()\n",
"tool_creator = ToolCreator()\n",
"\n",
"test_agency = GenesisAgency(\n",
"# agency_chart=[\n",
"# agent_creator,\n",
"# [agent_creator, tool_creator]\n",
"# ]\n",
")"
"test_agency = GenesisAgency()"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-01-11T04:14:32.205462Z",
"start_time": "2024-01-11T04:14:29.026670Z"
"end_time": "2024-01-11T05:42:09.869069Z",
"start_time": "2024-01-11T05:42:06.498881Z"
}
},
"id": "64b988e65898f6b3",
Expand Down Expand Up @@ -124,8 +127,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-01-11T04:14:33.706633Z",
"start_time": "2024-01-11T04:14:32.205904Z"
"end_time": "2024-01-11T05:42:12.145710Z",
"start_time": "2024-01-11T05:42:09.869494Z"
}
},
"id": "c95ce4524b2b3ab4",
Expand Down

0 comments on commit 0b92c31

Please sign in to comment.