def register_agent(self, agent_type: str, name: str=None, labels: List[str]=None, agent_config_id: str=None) -> str:
    '\n        Register an agent with a backend API\n\n        Args:\n            - agent_type (str): The type of agent being registered\n            - name: (str, optional): The name of the agent being registered\n            - labels (List[str], optional): A list of any present labels on the agent\n                being registered\n            - agent_config_id (str, optional): The ID of an agent configuration to register with\n\n        Returns:\n            - The agent ID as a string\n        '
    mutation = {'mutation($input: register_agent_input!)': {'register_agent(input: $input)': {'id'}}}
    result = self.graphql(mutation, variables=dict(input=dict(type=agent_type, name=name, labels=(labels or []), tenant_id=self._active_tenant_id, agent_config_id=agent_config_id)))
    if (not result.data.register_agent.id):
        raise ValueError('Error registering agent')
    return result.data.register_agent.id
Register an agent with a backend API

Args:
    - agent_type (str): The type of agent being registered
    - name: (str, optional): The name of the agent being registered
    - labels (List[str], optional): A list of any present labels on the agent
        being registered
    - agent_config_id (str, optional): The ID of an agent configuration to register with

Returns:
    - The agent ID as a string
def register_agent(self, agent_type: str, name: str=None, labels: List[str]=None, agent_config_id: str=None) -> str:
    '\n        Register an agent with a backend API\n\n        Args:\n            - agent_type (str): The type of agent being registered\n            - name: (str, optional): The name of the agent being registered\n            - labels (List[str], optional): A list of any present labels on the agent\n                being registered\n            - agent_config_id (str, optional): The ID of an agent configuration to register with\n\n        Returns:\n            - The agent ID as a string\n        '
    mutation = {'mutation($input: register_agent_input!)': {'register_agent(input: $input)': {'id'}}}
    result = self.graphql(mutation, variables=dict(input=dict(type=agent_type, name=name, labels=(labels or []), tenant_id=self._active_tenant_id, agent_config_id=agent_config_id)))
    if (not result.data.register_agent.id):
        raise ValueError('Error registering agent')
    return result.data.register_agent.id