Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add feedback and feedback_task with cli #102

Merged
merged 12 commits into from
Feb 13, 2024
Merged

add feedback and feedback_task with cli #102

merged 12 commits into from
Feb 13, 2024

Conversation

wenzhe-log10
Copy link
Collaborator

@wenzhe-log10 wenzhe-log10 commented Feb 9, 2024

  • Python example
python examples/feedback/simple_feedback.py
  • CLI
    create feedback task:
$ log10 feedback-task create --name "test_task_cli" --task_schema '{
        "type": "object",
        "properties": {
          "feedback": {
            "type": "string",
            "enum": ["😀", "😬", "😐", "🙁", "😫"]
          }
        },
        "required": ["feedback"]
    }'

create feedback:

log10 feedback create --task_id daa9e648-b0ab-4da0-9d3c-7e9396ea24ae --values '
  {
    "feedback": "😀"
  }' --completion_tags_selector "give_me_feedback"

@wenzhe-log10 wenzhe-log10 marked this pull request as ready for review February 13, 2024 00:18
@wenzhe-log10 wenzhe-log10 requested a review from nqn February 13, 2024 00:18
log10/feedback/feedback.py Outdated Show resolved Hide resolved
log10/feedback/feedback_task.py Outdated Show resolved Hide resolved
wenzhe-log10 and others added 4 commits February 12, 2024 16:26
Co-authored-by: Kim Tran <17498395+kxtran@users.noreply.github.com>
Co-authored-by: Kim Tran <17498395+kxtran@users.noreply.github.com>
@wenzhe-log10 wenzhe-log10 merged commit 67e4c48 into main Feb 13, 2024
1 check passed
@wenzhe-log10 wenzhe-log10 deleted the wenzhe/feedback branch February 13, 2024 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants