Index
BaseOutputParser #
Bases: DispatcherSpanMixin
, ABC
Output parser class.
Source code in llama-index-core/llama_index/core/types.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
parse
abstractmethod
#
parse(output: str) -> Any
Parse, validate, and correct errors programmatically.
Source code in llama-index-core/llama_index/core/types.py
42 43 44 |
|
format #
format(query: str) -> str
Format a query with structured output formatting instructions.
Source code in llama-index-core/llama_index/core/types.py
46 47 48 |
|
format_messages #
format_messages(messages: List[ChatMessage]) -> List[ChatMessage]
Format a list of messages with structured output formatting instructions.
Source code in llama-index-core/llama_index/core/types.py
50 51 52 53 54 55 56 57 58 59 60 |
|