{ "title": "Company Research Agent Input", "type": "object", "schemaVersion": 1, "properties": { "domain": { "title": "Company Domain", "type": "string", "description": "Domain name of the company to research (e.g., apple.com)", "editor": "textfield" } }, "required": ["domain"]}
The domain input goes through several processing steps:
Validation
Copy
async def validate_domain(domain: str) -> str: """ @param domain - Raw domain name input @returns Cleaned and validated domain name @throws ValueError if domain is invalid """ if not domain: raise ValueError("Domain is required") # Remove protocol and www domain = re.sub(r'^(https?://)?(www\.)?', '', domain.lower()) # Remove trailing path domain = domain.split('/')[0] if not validators.domain(domain): raise ValueError(f"Invalid domain: {domain}") return domain
AI Agent Assignment
The validated domain is passed to the Research Specialist agent, which coordinates with other agents to gather information.
{ "domain": "https://www.microsoft.com/en-us"}// Will be processed as: "microsoft.com"
The input system is designed to be user-friendly. It automatically cleans and normalizes the domain input, allowing users to provide URLs in various formats.