Skip to content

Commit ef3a3fd

Browse files
committed
serve working
1 parent de2d4aa commit ef3a3fd

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

agentstack/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from .cli import init_project_builder, configure_default_model, export_template, list_tools
1+
from .cli import init_project_builder, configure_default_model, export_template, serve_project
22
from .tools import list_tools, add_tool
33
from .run import run_project

agentstack/cli/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import importlib
12
from typing import Optional
23
import os
34
import sys
@@ -19,16 +20,15 @@
1920
from agentstack.logger import log
2021
from agentstack import conf
2122
from agentstack.conf import ConfigFile
22-
from agentstack.utils import get_package_path, open_json_file, term_color, is_snake_case, get_framework, validator_not_empty
23+
from agentstack.utils import get_package_path, get_framework, validator_not_empty
2324
from agentstack.generation.files import ProjectFile
2425
from agentstack import frameworks
25-
from agentstack import packaging, generation
26+
from agentstack import generation
2627
from agentstack import inputs
2728
from agentstack.agents import get_all_agents
2829
from agentstack.tasks import get_all_tasks
2930
from agentstack.proj_templates import TemplateConfig
3031
from agentstack.exceptions import ValidationError
31-
from agentstack.generation.files import ConfigFile
3232
from agentstack.utils import open_json_file, term_color, is_snake_case, verify_agentstack_project
3333

3434
PREFERRED_MODELS = [

agentstack/main.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import sys
22
from agentstack.cli import init_project_builder, list_tools, configure_default_model, serve_project
3-
from agentstack.telemetry import track_cli_command
4-
from agentstack.utils import get_version, get_framework
5-
import agentstack.generation as generation
6-
from agentstack.update import check_for_updates
73
import argparse
84
import webbrowser
95

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,9 @@ def process_agent():
7575

7676
if __name__ == '__main__':
7777
port = int(os.environ.get('PORT', 6969))
78+
79+
print("🚧 Running your agent on a development server")
80+
print(f"Send agent requests to http://localhost:{port}")
81+
print("Learn more about agent requests at https://docs.agentstack.sh/") # TODO: add docs for this
82+
7883
app.run(host='0.0.0.0', port=port)

0 commit comments

Comments
 (0)