Skip to content

RuntimeError: ParserException("Syntax error at LexToken(OPEN_ARGUMENTS,'(',1,40)") #9

@hankcs

Description

@hankcs

Dear authors,

There seems to a bug when expressions suggested by MultipleEventSuggestionsException are executed:

Dialog 16

GUID: 4a53ad40-3012-4b3b-bae2-02dad4b71c13:

  • U1: Create meeting for today at noon and make my ShowAs status Busy
  • A1: I've put that on your calendar. Your status is set to Busy.
  • U2: I would like to set a lunch appointment at 1 am after that.
  • A2: I've put that on your calendar. Your status is set to Busy.

Data:

{"dialogue_id": "4a53ad40-3012-4b3b-bae2-02dad4b71c13", "turns": [{"agent_utterance": {"described_entities": [], "original_text": "I've put that on your calendar. Your status is set to Busy.", "tokens": ["I", "'ve", "put", "that", "on", "your", "calendar", ".", "Your", "status", "is", "set", "to", "Busy", "."]}, "lispress": " CreateEvent( AND( has_status( ShowAsStatus( Busy ) ) , starts_at( Today( ) ) , starts_at( Noon( ) ) ) ) ", "program_execution_oracle": {"has_exception": false, "refer_are_correct": true}, "skip": true, "turn_index": 0, "user_utterance": {"original_text": "Create meeting for today at noon and make my ShowAs status Busy", "tokens": ["Create", "meeting", "for", "today", "at", "noon", "and", "make", "my", "ShowAs", "status", "Busy"]}}, {"agent_utterance": {"described_entities": [], "original_text": "I've put that on your calendar. Your status is set to Busy.", "tokens": ["I", "'ve", "put", "that", "on", "your", "calendar", ".", "Your", "status", "is", "set", "to", "Busy", "."]}, "lispress": " CreateEvent( AND( has_subject( lunch  appointment ) , starts_at( NextTime( time= NumberAM( 1 ) ) ) ) ) ", "program_execution_oracle": {"has_exception": false, "refer_are_correct": true}, "skip": true, "turn_index": 1, "user_utterance": {"original_text": "I would like to set a lunch appointment at 1 am after that.", "tokens": ["I", "would", "like", "to", "set", "a", "lunch", "appointment", "at", "1", "am", "after", "that", "."]}}]}

U1's request gets a MultipleEventSuggestionsException:

Screen Shot 2022-06-20 at 3 53 39 PM

When I try to execute AcceptSuggestion, ParserException was raised. The expression caused the issue was:

ModifyEventRequest(AND(starts_at(DateTime(date=Date(year=2022, month=1, day=3), time=Time(hour=11, minute=0))), ends_at(DateTime(date=Date(year=2022, month=1, day=3), time=Time(hour=11, minute=30))), at_location(online)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions