class_docstr: The Agent class provides an interface for the most important Rasa functionality.
  
  This includes training, handling messages, loading a dialogue model,
  getting the next action, and handling a channel.
class_docstr_tok: ["The","Agent","class","provides","an","interface","for","the","most","important","Rasa","functionality",".","This","includes","training",",","handling","messages",",","loading","a","dialogue","model",",","getting","the","next","action",",","and","handling","a","channel","."]
docstr: Returns the model name from processor's model_path.
docstr_tok: ["Returns","the","model","name","from","processor","'s","model_path","."]
code: def model_name(self) -> Optional[Text]:
      """Returns the model name from processor's model_path."""
      return self.processor.model_path.name if self.processor else None
  
imports: from __future__ import annotations
  from asyncio import AbstractEventLoop, CancelledError
  import functools
  import logging
  import os
  from pathlib import Path
  from typing import Any, Callable, Dict, List, Optional, Text, Union
  import uuid
  import aiohttp
  from aiohttp import ClientError
  from rasa.core import jobs
  from rasa.core.channels.channel import OutputChannel, UserMessage
  from rasa.core.constants import DEFAULT_REQUEST_TIMEOUT
  from rasa.core.http_interpreter import RasaNLUHttpInterpreter
  from rasa.shared.core.domain import Domain
  from rasa.core.exceptions import AgentNotReady
  from rasa.shared.constants import DEFAULT_SENDER_ID
  from rasa.core.lock_store import InMemoryLockStore, LockStore
  from rasa.core.nlg import NaturalLanguageGenerator, TemplatedNaturalLanguageGenerator
  from rasa.core.policies.policy import PolicyPrediction
  from rasa.core.processor import MessageProcessor
  from rasa.core.tracker_store import FailSafeTrackerStore, InMemoryTrackerStore
  from rasa.shared.core.trackers import DialogueStateTracker, EventVerbosity
  from rasa.exceptions import ModelNotFound
  from rasa.nlu.utils import is_url
  from rasa.shared.exceptions import RasaException
  import rasa.shared.utils.io
  from rasa.utils.common import TempDirectoryPath, get_temp_dir_name
  from rasa.utils.endpoints import EndpointConfig
  from rasa.core.tracker_store import TrackerStore
  from rasa.core.utils import AvailableEndpoints
label_desc: Use image node_id 5 for calling the Agent obj's underlying member method code with example usage: obj.model_name() and returns: unknown