Skip to content

[AI-2] action_tools.py DB 연동으로 전환 (김성원) #19

Description

@yesung05

작업 내용

action_tools.py의 Tool 함수를 정적 catalog에서 DB API 호출로 전환

담당: 김성원

변경 대상 Tool

  • add_to_cart: menu_catalog 조회 제거, api_client.add_cart_item() 호출
  • remove_from_cart: api_client.remove_cart_item() 호출
  • get_cart_status (신규): api_client.get_cart() 호출 후 요약 반환
  • confirm_order: api_client.create_order() 호출
  • check_user_points (신규): api_client.get_user_points() 호출

완료 기준

  • add_to_cart 호출 시 DB cart_items 레코드 생성 확인
  • LLM이 장바구니 조회 후 품목 정확히 답변
  • confirm_order 후 DB orders 레코드 생성 확인
  • session_id가 프론트 => LLM => DB까지 일관되게 전달

참고

docs/AI_파트_작업명세.md - action_tools 섹션
docs/지시서_AI파트.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    AILLM AI Tool 관련 작업

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions