Skip to content

Commit

Permalink
fix: export agentInput and also remove self referring process
Browse files Browse the repository at this point in the history
  • Loading branch information
k11kirky committed Oct 25, 2024
1 parent b2b31c4 commit a62a3c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agentserve/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# agentserve/__init__.py

from .agent import Agent
from .agent import Agent, AgentInput
from .agent_server import AgentServer
from .cli import main as cli_main
2 changes: 1 addition & 1 deletion agentserve/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Agent:
def _process(self, task_data: Dict[str, Any]) -> Dict[str, Any]:
# Validate task_data against input_schema
validated_data = self.input_schema(**task_data).dict()
return self._process(validated_data)
return self.process(validated_data)

def process(self, task_data: Dict[str, Any]) -> Dict[str, Any]:
"""
Expand Down

0 comments on commit a62a3c8

Please sign in to comment.