Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unused packages and modules #417

Merged
merged 4 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ repos:
--ignore-missing-imports,
--python-version=3.11,
]
exclude: ^(examples/|e2e_tests/|tests/tools/)
exclude: ^(examples/|e2e_tests/)

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
Expand Down
4 changes: 2 additions & 2 deletions examples/python_fullstack/workflows/agent_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

from llama_index.core.llms import ChatMessage
from llama_index.core.memory import ChatMemoryBuffer
from llama_index.core.tools import FunctionTool
from llama_index.core.workflow import (
Context,
Event,
Workflow,
StartEvent,
StopEvent,
Workflow,
step,
)
from llama_index.llms.openai import OpenAI
from llama_index.core.tools import FunctionTool

from .rag_workflow import RAGWorkflow

Expand Down
21 changes: 0 additions & 21 deletions llama_deploy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,9 @@
from llama_deploy.messages import QueueMessage
from llama_deploy.orchestrators import SimpleOrchestrator, SimpleOrchestratorConfig
from llama_deploy.services import (
AgentService,
ComponentService,
HumanService,
ToolService,
WorkflowService,
WorkflowServiceConfig,
)
from llama_deploy.tools import (
AgentServiceTool,
MetaServiceTool,
ServiceAsTool,
ServiceComponent,
ServiceTool,
)

root_logger = logging.getLogger("llama_deploy")

Expand All @@ -44,10 +33,6 @@
"AsyncLlamaDeployClient",
"Client",
# services
"AgentService",
"HumanService",
"ToolService",
"ComponentService",
"WorkflowService",
"WorkflowServiceConfig",
# messages
Expand All @@ -66,10 +51,4 @@
# orchestrators
"SimpleOrchestrator",
"SimpleOrchestratorConfig",
# various utils
"AgentServiceTool",
"ServiceAsTool",
"ServiceComponent",
"ServiceTool",
"MetaServiceTool",
]
Empty file removed llama_deploy/sdk/__init__.py
Empty file.
20 changes: 0 additions & 20 deletions llama_deploy/services/__init__.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
from llama_deploy.services.base import BaseService
from llama_deploy.services.agent import AgentService
from llama_deploy.services.human import HumanService
from llama_deploy.services.tool import ToolService
from llama_deploy.services.component import ComponentService
from llama_deploy.services.types import (
_Task,
_TaskSate,
_TaskStep,
_TaskStepOutput,
_ChatMessage,
)
from llama_deploy.services.workflow import WorkflowService, WorkflowServiceConfig

__all__ = [
"BaseService",
"AgentService",
"HumanService",
"ToolService",
"ComponentService",
"WorkflowService",
"WorkflowServiceConfig",
"_Task",
"_TaskSate",
"_TaskStep",
"_TaskStepOutput",
"_ChatMessage",
]
Loading
Loading