mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
@@ -1,7 +1,8 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
from crewai import Agent, Crew, Task
|
||||
from crewai.flow import Flow, start, listen
|
||||
from crewai.flow import Flow, listen, start
|
||||
|
||||
|
||||
class AnalysisState(BaseModel):
|
||||
topic: str = ""
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
|
||||
import click
|
||||
from rich.console import Console
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
import yaml
|
||||
|
||||
|
||||
class Config:
|
||||
"""
|
||||
Configuration for CrewAI deployments.
|
||||
|
||||
@@ -4,6 +4,7 @@ import subprocess
|
||||
from pathlib import Path
|
||||
from typing import Dict, List, Optional
|
||||
|
||||
|
||||
class DockerContainer:
|
||||
"""
|
||||
Manages Docker containers for CrewAI deployments.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import os
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional
|
||||
@@ -7,6 +7,7 @@ from typing import Any, Dict, List, Optional
|
||||
from crewai.deployment.config import Config
|
||||
from crewai.deployment.docker.container import DockerContainer
|
||||
|
||||
|
||||
class Deployment:
|
||||
"""
|
||||
Handles the deployment of CrewAI crews and flows.
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import os
|
||||
import tempfile
|
||||
import unittest
|
||||
from unittest import mock
|
||||
from pathlib import Path
|
||||
from unittest import mock
|
||||
|
||||
from crewai.deployment.config import Config
|
||||
from crewai.deployment.main import Deployment
|
||||
|
||||
|
||||
class TestDeployment(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.temp_dir = tempfile.TemporaryDirectory()
|
||||
|
||||
Reference in New Issue
Block a user