1- """Models for service responses."""
1+ """Models for REST API responses."""
22
33from typing import Any , Optional
44
@@ -80,7 +80,7 @@ class QueryResponse(BaseModel):
8080
8181
8282class InfoResponse (BaseModel ):
83- """Model representing a response to a info request.
83+ """Model representing a response to an info request.
8484
8585 Attributes:
8686 name: Service name.
@@ -451,16 +451,18 @@ class ConversationDetails(BaseModel):
451451 created_at: When the conversation was created.
452452 last_message_at: When the last message was sent.
453453 message_count: Number of user messages in the conversation.
454- model: The model used for the conversation.
454+ last_used_model: The last model used for the conversation.
455+ last_used_provider: The provider of the last used model.
455456
456457 Example:
457458 ```python
458- conversation = ConversationSummary (
459+ conversation = ConversationDetails (
459460 conversation_id="123e4567-e89b-12d3-a456-426614174000"
460461 created_at="2024-01-01T00:00:00Z",
461462 last_message_at="2024-01-01T00:05:00Z",
462463 message_count=5,
463- model="gemini/gemini-2.0-flash"
464+ last_used_model="gemini/gemini-2.0-flash",
465+ last_used_provider="gemini",
464466 )
465467 ```
466468 """
@@ -488,13 +490,15 @@ class ConversationsListResponse(BaseModel):
488490 created_at="2024-01-01T00:00:00Z",
489491 last_message_at="2024-01-01T00:05:00Z",
490492 message_count=5,
491- model="gemini/gemini-2.0-flash"
493+ last_used_model="gemini/gemini-2.0-flash",
494+ last_used_provider="gemini",
492495 ),
493496 ConversationDetails(
494497 conversation_id="456e7890-e12b-34d5-a678-901234567890"
495498 created_at="2024-01-01T01:00:00Z",
496499 message_count=2,
497- model="gemini/gemini-2.5-flash"
500+ last_used_model="gemini/gemini-2.0-flash",
501+ last_used_provider="gemini",
498502 )
499503 ]
500504 )
@@ -514,13 +518,15 @@ class ConversationsListResponse(BaseModel):
514518 "created_at" : "2024-01-01T00:00:00Z" ,
515519 "last_message_at" : "2024-01-01T00:05:00Z" ,
516520 "message_count" : 5 ,
517- "model" : "gemini/gemini-2.0-flash" ,
521+ "last_used_model" : "gemini/gemini-2.0-flash" ,
522+ "last_used_provider" : "gemini" ,
518523 },
519524 {
520525 "conversation_id" : "456e7890-e12b-34d5-a678-901234567890" ,
521526 "created_at" : "2024-01-01T01:00:00Z" ,
522527 "message_count" : 2 ,
523- "model" : "gemini/gemini-2.5-flash" ,
528+ "last_used_model" : "gemini/gemini-2.5-flash" ,
529+ "last_used_provider" : "gemini" ,
524530 },
525531 ]
526532 }
0 commit comments