def _create_new_agent(self, resolved_name: str, version: str) -> None:
        """Create a new External Agent with a specified version."""

        # note we cannot parametrize inputs to query when using CREATE statement - hence f-string but there might be a risk of sql injection
        query = f"""CREATE EXTERNAL AGENT "{resolved_name}" WITH VERSION "{version}";"""
        execute_query(self.session, query)

        logger.info(
            f"Created External Agent {resolved_name} with version {version}."
        )
Create a new External Agent with a specified version.
src/connectors/snowflake/trulens/connectors/snowflake/dao/external_agent.py