fix: allow elicitations accepted without content (#1285)
Co-authored-by: Olivier Schiavo <olivier.schiavo@wengo.com>
This commit is contained in:
parent
ca5cb4cb67
commit
b41b9175e8
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ async def elicit_with_validation(
|
|||
related_request_id=related_request_id,
|
||||
)
|
||||
|
||||
if result.action == "accept" and result.content:
|
||||
if result.action == "accept" and result.content is not None:
|
||||
# Validate and parse the content using the schema
|
||||
validated_data = schema.model_validate(result.content)
|
||||
return AcceptedElicitation(data=validated_data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue