Class that contains all relevant information for an LLM Result.
| 32 | |
| 33 | |
| 34 | class LLMResult(BaseModel): |
| 35 | """Class that contains all relevant information for an LLM Result.""" |
| 36 | |
| 37 | generations: List[Generation] |
| 38 | """List of the things generated. This is List[List[]] because |
| 39 | each input could have multiple generations.""" |
| 40 | llm_output: Optional[dict] = None |
| 41 | """For arbitrary LLM provider specific output.""" |
| 42 | |
| 43 | |
| 44 | class EmbeddingResult(BaseModel): |
no outgoing calls
no test coverage detected