conversion_manager
Class info¶
Classes¶
Name | Children | Inherits |
---|---|---|
ConversionConfig llmling_agent_config.converters Global conversion configuration. |
||
ConversionManager llmling_agent.prompts.conversion_manager Manages document conversion using configured providers. |
||
MarkItDownConfig llmling_agent_config.converters Configuration for MarkItDown-based converter. |
|
|
PlainConverterConfig llmling_agent_config.converters Configuration for plain text fallback converter. |
|
🛈 DocStrings¶
ConversionManager
¶
Manages document conversion using configured providers.
In order to not make things super complex, all Converters will be implemented as sync. The manager will handle async I/O and thread pooling.
Source code in src/llmling_agent/prompts/conversion_manager.py
21 22 23 24 25 26 27 28 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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|
convert_content
async
¶
Convert content using first supporting converter.
Source code in src/llmling_agent/prompts/conversion_manager.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|
convert_content_sync
¶
Sync wrapper for convert_content.
Source code in src/llmling_agent/prompts/conversion_manager.py
115 116 117 118 119 120 121 122 |
|
convert_file
async
¶
convert_file(path: StrPath) -> str
Convert file using first supporting converter.
Source code in src/llmling_agent/prompts/conversion_manager.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|
convert_file_sync
¶
convert_file_sync(path: StrPath) -> str
Sync wrapper for convert_file.
Source code in src/llmling_agent/prompts/conversion_manager.py
106 107 108 109 110 111 112 113 |
|
supports_content
¶
Check if any converter supports the file.
Source code in src/llmling_agent/prompts/conversion_manager.py
44 45 46 |
|
supports_file
¶
supports_file(path: StrPath) -> bool
Check if any converter supports the file.
Source code in src/llmling_agent/prompts/conversion_manager.py
40 41 42 |
|