Scanner
Agent discovery and scanning functionality.
Agent scanner utility to discover PlanExecute subclasses.
DiscoveredAgent
Bases: BaseModel
Information about a discovered agent.
Source code in src/opensymbolicai_cli/scanner.py
DiscoveredMethod
Bases: BaseModel
Information about a discovered method.
Source code in src/opensymbolicai_cli/scanner.py
ManifestMetadata
Bases: BaseModel
Metadata extracted from a manifest file.
Source code in src/opensymbolicai_cli/scanner.py
scan_directory_for_agents(directory)
Scan a directory for Python files containing PlanExecute/Planner subclasses.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
directory
|
Path
|
The directory to scan. |
required |
Returns:
| Type | Description |
|---|---|
list[DiscoveredAgent]
|
List of discovered agents. |
Source code in src/opensymbolicai_cli/scanner.py
scan_file_for_agents(file_path)
Scan a single Python file for PlanExecute/Planner subclasses.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_path
|
Path
|
Path to the Python file to scan. |
required |
Returns:
| Type | Description |
|---|---|
list[DiscoveredAgent]
|
List of discovered agents in the file. |