2025-07-29 23:41:50 +08:00
|
|
|
from .api import agents, threads
|
|
|
|
from .agent import KortixAgent
|
|
|
|
from .thread import KortixThread
|
2025-08-01 04:03:20 +08:00
|
|
|
from .tools import AgentPressTools, MCPTools
|
2025-07-29 03:11:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Kortix:
|
2025-08-01 06:00:25 +08:00
|
|
|
def __init__(self, api_key: str, api_url="https://suna.so/api"):
|
2025-07-29 03:11:33 +08:00
|
|
|
self._agents_client = agents.create_agents_client(api_url, api_key)
|
|
|
|
self._threads_client = threads.create_threads_client(api_url, api_key)
|
|
|
|
|
|
|
|
self.Agent = KortixAgent(self._agents_client)
|
|
|
|
self.Thread = KortixThread(self._threads_client)
|