mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-17 23:09:35 +00:00
19 lines
658 B
Python
19 lines
658 B
Python
from __future__ import annotations
|
|
|
|
from typing import Any, Dict
|
|
|
|
from app.openclaw.plugins.contract_intelligence_plugin import ContractIntelligencePlugin
|
|
|
|
|
|
class ContractIntelligenceService:
|
|
def __init__(self) -> None:
|
|
self.plugin = ContractIntelligencePlugin()
|
|
|
|
async def generate_and_send(self, deal: Dict[str, Any], provider: str = "docusign") -> Dict[str, Any]:
|
|
draft = await self.plugin.generate_contract(deal)
|
|
signature = await self.plugin.request_signature(draft["document_id"], provider=provider)
|
|
return {"draft": draft, "signature": signature}
|
|
|
|
|
|
contract_intelligence_service = ContractIntelligenceService()
|