Index
BaseOutputParser #
Bases: Protocol
Output parser class.
Source code in llama-index-core/llama_index/core/types.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
parse
abstractmethod
#
parse(output: str) -> Any
Parse, validate, and correct errors programmatically.
Source code in llama-index-core/llama_index/core/types.py
38 39 40 |
|
format #
format(query: str) -> str
Format a query with structured output formatting instructions.
Source code in llama-index-core/llama_index/core/types.py
42 43 44 |
|
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
46 47 48 49 50 51 52 53 54 55 56 |
|