o
    sg/                     @   s  d Z ddlZddlZddlmZ ddlmZmZ ddlm	Z	 ddlm	Z
 ddlmZ ddlmZ ddlmZ dd	lmZ G d
d de	ddZG dd de
ZG dd de
ZG dd de	ZG dd de	Zedkrdddddddddddd dd!d"ddd#d$ddd%d&d'dd(d)d*dd+d,ddd-d.ddd/d0d1dg
id2d3ed4d5d6d7d8d9d:ed;d<d=dd>d?d:ed@dAdBdAdCdBd:edDdEdFdGdHdFd:edIdEdJdEdKdLd:edMdNdOdPdQdRd:gdSd3ddSddTdU
ZedVi eZee  dS dS )WzClasses for the LLM results    N)Decimal)DictList)	BaseModel)Field)field_validator)DynamoDB)
parsed_urlc                   @   s*   e Zd ZU dZeed< eed< eed< dS )
LeadershipClass to store image detailsnametitlelinkedin_linkN)__name__
__module____qualname____doc__str__annotations__ r   r   M/var/www/html/XCapMarket/services/company_profile/data_classes/llm_results.pyr
      s
   
 r
   allow)extrac                   @   sN   e Zd ZU dZedddZeed< edddZeed< ed	d
dZ	eed< dS )LangChainLeadershipr   NamezName of the leader)descriptionr   TitlezTitle of the leaderr   zLinkedin LinkzLinkedin link of the leaderr   N)
r   r   r   r   	LangFieldr   r   r   r   r   r   r   r   r   r      s   
 r   c                   @   s"   e Zd ZU dZg Zee ed< dS )LeadershipResultsr   
leadershipN)r   r   r   r   r   listr   r   r   r   r   r   r       s   
 r   c                   @   sB   e Zd ZU dZeed< eed< eed< eed< eed< eed< dS )	LLMQueryzClass to store logo detailscategoryheader	LLM_queryOrderresponsevector_db_queryN)r   r   r   r   r   r   intr   r   r   r   r!   %   s   
 r!   c                   @   s:  e Zd ZU dZeed< dZeeee	 f dB ed< ee
 ed< dZedB ed< dZedB ed< dZedB ed	< e ZedB ed
< ej dZedB ed< e ZedB ed< ej dZedB ed< edddedefddZedddedefddZedddedd Zdd Ze dd Z!dS )
LLMResultszClass to store company detailsroot_urlNr   LLM_resultsFverifiedverified_byverify_date
created_by%Y-%m-%d %H:%M:%Screated_datemodified_bymodified_datebefore)moderaw_leadershipc                 C   s|   |du rdS |dkrdS | dg }t|dks|du rdS g }|D ]}t|tr/|| q"|tdi | q"d|iS )z.convert the list of images to the Images classN r   r   r   )getlen
isinstancer
   append)clsr6   leadership_listleaderr   r   r   create_leadership?   s   
zLLMResults.create_leadershipraw_LLM_queryc                 C   s>   t |dks
|du rdS g }|D ]}|tdi | q|S )3convert the list of llm queries to the Images classr   Nr   )r9   r;   r!   )r<   r@   
query_listqueryr   r   r   create_llm_resultU   s   zLLMResults.create_llm_resultc                 C   s   |du rdS dS )rA   TFr   )r<   r,   r   r   r   create_verifiedb   s   zLLMResults.create_verifiedc                 C   s    t  | _tj d| _dS )z(Update the modified date and modified byr0   N)socketgethostnamer2   datetimenowstrftimer3   )selfr   r   r   update_modifyj   s   
zLLMResults.update_modifyc                 C   sB   t | j} t }||j| }|du rt|  dtdi |S )zGet the information from the dbNz not found in the database.r   )r	   urlr   get_item	llm_table
ValueErrorr)   )company_urldbcompany_llm_resultsr   r   r   get_LLM_resultso   s   
zLLMResults.get_LLM_results)"r   r   r   r   r   r   r   r   r   r
   r!   r,   boolr-   r.   rF   rG   r/   rH   rI   rJ   r1   r2   r3   r   classmethoddictr?   r    rD   rE   rL   staticmethodrT   r   r   r   r   r)   /   s0   
 


r)   __main__r   zJames M. WhitehurstzInterim CEO and Presidentr7   )r   r   r   zNadav Ashkenazyz4Senior Vice President and Chief Revenue Officer GrowzCarol Carpenterz1Senior Vice President and Chief Marketing Officerz,https://www.linkedin.com/in/carolwcarpenter/zMarisa Eddyz.Senior Vice President and Chief People OfficerzGiancarlo FasolozSenior Vice President AurazAnirma Guptaz-Senior Vice President and Chief Legal Officerz(https://www.linkedin.com/in/anirmagupta/zJessica LindlzVice President Social Impactz1https://www.linkedin.com/in/jessica-lindl-8b73a5/zJules Shumakerz6Senior Vice President and Chief Revenue Officer CreatezFelix Thz1Senior Vice President Product and Technology GrowzLuis Felipe Visosoz4Executive Vice President and Chief Financial Officerz8https://www.linkedin.com/in/luis-felipe-visoso-aa841a22/zhttps://www.unity.comz2024-02-15 12:23:0920zProducts and ServiceszJProvide short descriptions the products and services the company provides?Productsa  - Unity Engine: Real-time 3D development engine for creating interactive experiences.
- Unity Cloud: Ecosystem for real-time 3D experiences and services.
- Unity Muse: AI-powered features for game and 3D development acceleration.
- Parsec: Remote desktop solution for team collaboration.
- SyncSketch: Collaboration tool for reviewing and annotating animations.
- Ziva: Tools for creating high-quality characters for various media.
- SpeedTree: Software for creating realistic vegetation in different environments.
- Asset Store: Marketplace for game assets, tools, and plugins.
- DevOps: Tools for agile development and high-quality game releases.
- Multiplayer: Services for building and managing multiplayer games.
- Engagement and Analytics: Tools for understanding player behavior and optimizing engagement.
- Game Backend: Services for managing game data and player interactions.
- Growth: Solutions for monetization, user acquisition, and device management.
- Monetization: Strategies and tools for driving revenue from games.
- User Acquisition: Services for acquiring new players for games.
- Device Management: Tools for managing game performance across different devices.
- Publishing: Services for launching and promoting games on various platforms.z8What are the products and services the company provides?)r%   r#   r$   r"   r&   r'   30
ManagementzGive back a list of names of the founders, executives, management or leadership team split by executive team and board members and their roles in the format of <name> : <role>. If you can't find it in the text, return 'leadership not found'.a]  - James M. Whitehurst: Interim CEO and President
- Nadav Ashkenazy: Senior Vice President and Chief Revenue Officer Grow
- Carol Carpenter: Senior Vice President and Chief Marketing Officer
- Marisa Eddy: Senior Vice President and Chief People Officer
- Giancarlo Fasolo: Senior Vice President Aura
- Anirma Gupta: Senior Vice President and Chief Legal Officer
- Jessica Lindl: Vice President Social Impact
- Jules Shumaker: Senior Vice President and Chief Revenue Officer Create
- Felix Th: Senior Vice President Product and Technology Grow
- Luis Felipe Visoso: Executive Vice President and Chief Financial Officer

Board of Directors:
- Roelof Botha: Sequoia Capital Managing Member Chairman of the Board of Directors
- Tomer BarZeev: Co-Founder ironSource
- Mary Schmidt Campbell Ph.D: Spelman College President Emerita
- Shlomo Dovrat: Viola Ventures Co-Founder and General Partner
- Egon Durban: Silver Lake Partners Co-Chief Executive Officer Managing Partner
- David Helgason: Transition Global Founding General Partner
- Michelle K. Lee: AI tech executive Former Under Secretary of Commerce and Director of the U.S. Patent & Trademark Office Member of the MIT Corporation
- David Kostman: Outbrain Co-Chief Executive Officer
- Barry Schuler: DFJ Growth Managing Director & Partner
- Robynne Sisco: Workday Vice Chair
- Keisha Smith: Tory Burch Chief People OfficerzQNames of the founders, executives, management or leadership team and their roles.40	Customersz.What organizations or companies are customers?zC- ABB
- Autoliv
- BMW
- Daimler Buses
- Honda
- Toyota
- Volkswagen15OverviewzCWhat are some remarkable statistics about the company and overview?Overview_Statsa  - Unity is the world's leading platform for creating and operating interactive real-time 3D content.
- In 2022, Unity had more than 4 billion downloads per month of Made with Unity apps.
- 70% of the top 1000 mobile games were made with Unity.
- Unity Ads generated more than $1.1 billion in income for creators.
- Unity supports creators in creating games and experiences across 20 platforms and billions of devices.10z)Provide a 20 word overview of the companyzUnity Technologies is a leading platform for creating interactive 3D content, empowering creators across industries with innovative tools and services.z6Give me some company facts, tell me about the company?19zHQ and Foundedz]Return the completed the sentences: Company headquarter: <location>; Founded: <founded year>?
HQ_Foundedz?Company headquarters: San Francisco, California; Founded: 2004.zCWhere is the company headquarted (HQ) and what year it was founded?z
Sagar-Asussearch)
r   r*   r3   r+   r/   r1   r.   r2   r-   r,   r   )r   rH   rF   decimalr   typingr   r   pydanticr   LangBaseModelr   r   r   utils.dynamo_dbr   utils.url_parserr	   r
   r   r   r!   r)   r   	comp_dictcompany_infoprint
model_dumpr   r   r   r   <module>   s    	
N6					2s