tools
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| TestTool llmling.testing.tools |
🛈 DocStrings¶
analyze_ast
async
¶
Analyze Python code AST.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code
|
str
|
Python source code to analyze |
required |
Returns:
| Type | Description |
|---|---|
dict[str, int]
|
Dictionary with analysis results |
Source code in src/llmling/testing/tools.py
example_tool
async
¶
Example tool that repeats text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
Text to repeat |
required |
repeat
|
int
|
Number of times to repeat |
1
|
Returns:
| Type | Description |
|---|---|
str
|
The repeated text |