Spaces:
Running
Running
File size: 909 Bytes
2414d31 657f0fa 2414d31 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | """
ClarifyRL Environment Client.
Provides the client for connecting to a ClarifyRL Environment server.
Extends MCPToolClient for tool-calling style interactions.
Example:
>>> with ClarifyClient(base_url="http://localhost:7860") as env:
... env.reset()
... tools = env.list_tools()
... result = env.call_tool("ask_question", question="What is your budget?")
... print(result)
"""
from openenv.core.mcp_client import MCPToolClient
class ClarifyClient(MCPToolClient):
"""
Client for the ClarifyRL Environment.
Inherits all functionality from MCPToolClient:
- list_tools(): Discover available tools (ask_question, propose_plan, get_task_info)
- call_tool(name, **kwargs): Call a tool by name
- reset(**kwargs): Reset the environment (pass task_id="easy"|"medium"|"hard")
- step(action): Execute an action (for advanced use)
"""
pass
|