Skip to content

[AI-1] api_client.py 구현 + session_id 컨텍스트 (임지연) #18

Description

@yesung05

작업 내용

ai_modules/llm/api_client.py 구현 및 action_context.py session_id 관리 추가

담당: 임지연

api_client.py 구현 함수

현재 stub (NotImplementedError) 상태를 httpx async 호출로 구현

  • get_menu()
  • add_cart_item(session_id, menu_item_id, quantity, options)
  • get_cart(session_id)
  • remove_cart_item(session_id, item_id)
  • create_order(session_id, user_phone=None)
  • get_user_points(phone)

action_context.py 추가 내용

set_session_id(sid), get_session_id() 함수 추가

완료 기준

  • get_menu() 호출 시 DB API 응답 반환
  • add_cart_item() 호출 시 DB에 레코드 생성
  • session_id context 정상 동작

참고

docs/AI_파트_작업명세.md, docs/지시서_AI파트.md

Metadata

Metadata

Assignees

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