Concepts
Understand concepts and how they are utilized in procedures.
Last updated
Was this helpful?
Was this helpful?
@concept(is_a="office user")
@dataclass
class OfficeUser:
"""
An Office User represents a user in the Microsoft Graph. It includes key user details such as display name,
email address, and job title.
Attributes:
id: The unique identifier for the user.
display_name: The name displayed in the address book for the user.
email_address: The user's email address (usually their user principal name).
job_title: The user's job title.
"""
id: str
display_name: Optional[str] = None
email_address: Optional[str] = None
job_title: Optional[str] = None
...@procedure("to start a red car")
def unique_function_name(self, red_car: type) -> output_type:@procedure("to send a servicenow's ticket's field to an outlook's standard user)
def func(self, ticket: Ticket, field: NounPhrase, standard_user: OutlookUser):@procedure("to update a ticket's field")
def update_field(self, ticket: Ticket, new_value: Any):@procedure("to assign the task to the user")
def assign_task(self, task: Task, user: User, priority: Optional[str] = None) -> None:
"""Assign a task to a user.
Input Concepts:
the task: The action of piece of work that needs to be completed.
the user: The user that the action is to be assigned to.
the priority: The level of importance or urgency of the task.
Example 1:
Assign the task to the user
>>> assign the task to the user
Example 2:
Assign the task to the user with a priority
>>> assign the task to the user with
the priority is "high"
"""@procedure("to get the (current temperature) at a city")
def current_temperature(self, city: NounPhrase, unit: Optional[NounPhrase] = NounPhrase("standard")) -> float:
"""Fetch the current temperature for a specified city.
Input Concepts:
the city: The name of the city.
the unit: Unit of measurement.
Output Concepts:
the current temperature: The current temperature in the specified units of measurement, or None if an error occurs.
Example 1:
Retrieve the current temperature at London
>>> get the current temperature at London
Example 2:
Retrieve the current temperature at London in Celsius
>>> get the current temperature at Buenos Aires with
... the unit is metric
"""