Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Natural Language Intent Routing

Đang mở
#216 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
github-actions, typescript
Lĩnh vực
ai, ci-cd

Hướng nghiên cứu

Bắt đầu bằng việc xem xét các workflow dispatcher hiện có và cách chúng xử lý slash command, sau đó kiểm tra bước phân loại được đề xuất bằng run-gemini-cli. Xác định cách định tuyến các yêu cầu review, triage, invoke và các yêu cầu mơ hồ, đồng thời xác minh rằng các ví dụ bằng ngôn ngữ tự nhiên hoạt động trong khi các slash command hiện có vẫn được xử lý phù hợp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area/workflows kind/enhancement priority/p2

Problem

The current dispatcher pattern relies on slash commands (@gemini-cli /review, @gemini-cli /triage) limits the natural interaction experience:

  • Rigid syntax: Users must remember exact slash commands (/review, /triage)
  • Poor discoverability: No way to know what commands are available except by reading workflows
  • Unnatural interaction: Doesn't leverage Gemini's natural language understanding capabilities
  • Limited flexibility: Can't handle variations or synonyms (e.g., "please review this" vs "/review")
  • User friction: Have to context-switch to remember command syntax

Solution

Intent routing involves:

  • Parse natural language requests instead of requiring slash commands
  • Automatically detect intent from user requests
  • Route to appropriate workflows based on semantic understanding
  • Provide fallback handling for ambiguous requests

Here are some examples:

  • Review intent: "review", "analyze", "check", "examine", "audit"
  • Triage intent: "categorize", "label", "classify", "organize", "tag"
  • Implement intent: "fix", "update", "change", "modify", "improve"
  • General query intent: "explain", "help", "what", "how", "why"

Example

This is an example routing step:

# Example enhanced dispatcher logic
- name: 'Classify intent'
  if: |-
    ${{ !startsWith(github.event.comment.body, '@gemini-cli /') }}
  env:
    REQUEST_BODY: '${{ github.event.comment.body || github.event.review.body || github.event.issue.body }}'
  uses: 'google-github-actions/run-gemini-cli@main'
  with:
    prompt: |-
      Classify this request into one of: review, triage, invoke
      Request: "${REQUEST_BODY}"
      Return only the classification.

This would be the outcome:

❌ Before: "@gemini-cli /review focus on security"
✅ After: "@gemini-cli please review this PR for security issues"

❌ Before: "@gemini-cli /triage" 
✅ After: "@gemini-cli can you help categorize this issue?"
Ngôn ngữ chính
TypeScript
Star
2.1k
Fork
285
Merge trung bình
8 giờ 8 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của google-github-actions/run-gemini-cli

Tất cả issue của google-github-actions/run-gemini-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.