22bd8d6824
* feat: support anthropic skills closes: #4687 * chore: ruff * feat: implement skills management and selection in persona configuration * feat: enhance skills management with local environment tools and permissions
20 lines
368 B
Python
20 lines
368 B
Python
"""
|
|
Python/IPython component
|
|
"""
|
|
|
|
from typing import Any, Protocol
|
|
|
|
|
|
class PythonComponent(Protocol):
|
|
"""Python/IPython operations component"""
|
|
|
|
async def exec(
|
|
self,
|
|
code: str,
|
|
kernel_id: str | None = None,
|
|
timeout: int = 30,
|
|
silent: bool = False,
|
|
) -> dict[str, Any]:
|
|
"""Execute Python code"""
|
|
...
|