utils
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| ToolDisplay llmling.cli.utils Display representation of a LLMCallableTool. |
🛈 DocStrings¶
ToolDisplay
¶
Bases: Schema
Display representation of a LLMCallableTool.
Source code in src/llmling/cli/utils.py
format_output
¶
Format and print data in the requested format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
Any
|
Object to format (BaseModel, dict, or sequence) |
required |
output_format
|
OutputFormat
|
One of: text, json, yaml |
'text'
|
Source code in src/llmling/cli/utils.py
get_command_help
¶
Get command help text with active config information.
Source code in src/llmling/cli/utils.py
prepare_for_output
¶
Prepare object for output formatting.
Converts LLMCallableTools to display models, keeps dicts as-is, and handles sequences.