Skip to content

Commit

Permalink
Ikshm change notification response format (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
beastoin authored Nov 14, 2024
2 parents 4342c8b + 149d4db commit 18d117d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/example/basic/mentor.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def normalize(text):
```
""".replace(' ', '').strip()

# 3. Respond with the format {mentor: {prompt, params}}
# 3. Respond with the format {notification: {prompt, params}}
return {'session_id': data.session_id,
'notification': {'prompt': prompt,
'params': ['user_name', 'user_facts']}}
Expand Down
2 changes: 1 addition & 1 deletion plugins/example/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ class MentorResponse(BaseModel):

class MentorEndpointResponse(BaseModel):
message: str = Field(description="A short message to be sent as notification to the user, if needed.", default='')
mentor: MentorResponse = Field(description="An object to guide the system in generating the proactive notification", default=None)
notification: MentorResponse = Field(description="An object to guide the system in generating the proactive notification", default=None)

0 comments on commit 18d117d

Please sign in to comment.