class_docstr: An AppSession is an interactive session, usually connected to one terminal.
  Within one such session, interaction with many applications can happen, one
  after the other.
  
  The input/output device is not supposed to change during one session.
  
  Warning: Always use the `create_app_session` function to create an
  instance, so that it gets activated correctly.
  
  :param input: Use this as a default input for all applications
      running in this session, unless an input is passed to the `Application`
      explicitly.
  :param output: Use this as a default output.
class_docstr_tok: ["An","AppSession","is","an","interactive","session",",","usually","connected","to","one","terminal",".","Within","one","such","session",",","interaction","with","many","applications","can","happen",",","one","after","the","other",".","The","input\/output","device","is","not","supposed","to","change","during","one","session",".","Warning",":","Always","use","the","`","create_app_session","`","function","to","create","an","instance",",","so","that","it","gets","activated","correctly",".",":","param","input",":","Use","this","as","a","default","input","for","all","applications","running","in","this","session",",","unless","an","input","is","passed","to","the","`","Application","`","explicitly",".",":","param","output",":","Use","this","as","a","default","output","."]
code: def __repr__(self) -> str:
      return f"AppSession(app={self.app!r})"
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py
imports: from __future__ import annotations
  from contextlib import contextmanager
  from contextvars import ContextVar
  from typing import TYPE_CHECKING, Any, Generator
label_desc: Use image node_id 2 for calling the AppSession obj's underlying member method code with example usage: obj.__repr__() and returns: str, self, str