AG2 home pagelight logodark logo
  • ag2ai/ag2
  • ag2ai/ag2
Documentation
User Guide
API References
Use Cases
User Stories
Contribute
FAQs
Ecosystem
Blog
API Reference
    • Overview
    • Agent
    • AgentNameConflictError
    • AssistantAgent
    • Cache
    • ChatResult
    • ContextExpression
    • ConversableAgent
    • GroupChat
    • GroupChatManager
    • InvalidCarryOverTypeError
    • LLMConfig
    • ModelClient
    • NoEligibleSpeakerError
    • OpenAIWrapper
    • SenderRequiredError
    • UndefinedNextAgentError
    • UpdateSystemMessage
    • UserProxyAgent
    • a_initiate_swarm_chat
    • a_run_swarm
    • config_list_from_dotenv
    • config_list_from_json
    • config_list_from_models
    • config_list_gpt4_gpt35
    • config_list_openai_aoai
    • filter_config
    • gather_usage_summary
    • get_config_list
    • initiate_chats
    • register_function
    • run_swarm
      • Overview
      • count_token
      • get_max_token_limit
      • num_tokens_from_functions
      • percentile_used
      • token_left
On this page
  • Functions
token_count_utils

Overview

​
Functions

count_token

get_max_token_limit

num_tokens_from_functions

percentile_used

token_left

stopcount_token
xgithublinkedindiscordyoutube
Powered by Mintlify
Assistant
Responses are generated using AI and may contain mistakes.