Spaces:
Running
Running
File size: 1,370 Bytes
105f2e1 ab037c6 105f2e1 8295ef1 105f2e1 ab037c6 105f2e1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | """Backward-compatible entrypoint for the terminal agent.
New code should import from agent_core.* modules directly. This file remains so
existing commands like `python agent_loop.py` keep working.
"""
from agent_core.agent import TOOL_HANDLERS, TOOLS, agent_loop, latest_user_prompt
from agent_core.config import (
DEFAULT_CADQUERY_OUTPUT_PATH,
DEFAULT_LUX3D_OUTPUT_PATH,
IMAGE_SUFFIXES,
LUX3D_API_KEY_ENV,
LUX3D_CREATE_URL,
LUX3D_GET_URL,
LUX3D_POLL_INTERVAL_SECONDS,
LUX3D_TIMEOUT_SECONDS,
STEP_SUFFIXES,
WORKDIR,
get_client,
)
from agent_core.outputs import (
allocate_run_dir,
new_run_id,
resolve_lux3d_run,
resolve_run_output,
safe_path,
update_latest_link,
workspace_relative,
write_lux3d_manifest,
write_manifest,
)
from agent_core.prompts import SYSTEM
from agent_core.tools.cadquery_tool import CADQUERY_RUNNER, run_execute_cadquery
from agent_core.tools.lux3d_tool import (
download_lux3d_result,
image_to_data_url,
infer_lux3d_output_name,
lux3d_create_task,
lux3d_get_task,
lux3d_json_request,
lux3d_query,
parse_lux3d_api_key,
run_generate_3d_model,
validate_image_path,
)
from agent_core.utils import json_response as _json_response
from agent_core.utils import tail_text
from cli import main
if __name__ == "__main__":
main()
|