mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 02:42:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			202 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			202 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from typing import Optional
 | |
| 
 | |
| from pydantic import BaseModel
 | |
| 
 | |
| 
 | |
| class DocumentContext(BaseModel):
 | |
|     """
 | |
|     Model class for document context.
 | |
|     """
 | |
| 
 | |
|     content: str
 | |
|     score: Optional[float] = None
 | 
