aagent-zeroSource ↗
80 declarations and 141 call references extracted from public source metadata.

Source symbols: agent.py

Deterministic, value-free symbol metadata extracted from public source. Implementations and literal values are not copied into this page.

  • Revision: main@d1d48bc9c0e6e253e87c354ce757c518820c6e25 · 2026-07-20T15:04:19Z
  • Declarations: 80
  • Referenced calls: 141

Declared symbols

  • AgentContextType — class at line 45
  • AgentContext — class at line 51
  • __init__ — def at line 59; references generate_id, get, pop, kill, set_current
  • get — def at line 108; references set_current, get_context_data, set_context_data, list, values, join, choices, generate_short_id, NotificationManager, pop, kill, serialize_datetime, fromtimestamp, len, is_running
  • use — def at line 113; references get, set_current, get_context_data, set_context_data, list, values, join, choices, generate_short_id, NotificationManager, pop, kill, serialize_datetime, fromtimestamp, len, is_running
  • current — def at line 122; references get_context_data, get, set_context_data, list, values, join, choices, generate_short_id, NotificationManager, pop, kill, serialize_datetime, fromtimestamp, len, is_running
  • set_current — def at line 129; references set_context_data, list, values, join, choices, generate_short_id, NotificationManager, pop, kill, get, serialize_datetime, fromtimestamp, len, is_running
  • first — def at line 133; references list, values, join, choices, generate_short_id, NotificationManager, pop, kill, get, serialize_datetime, fromtimestamp, len, is_running
  • all — def at line 140; references list, values, join, choices, generate_short_id, NotificationManager, pop, kill, get, serialize_datetime, fromtimestamp, len, is_running
  • generate_id — def at line 145; references join, choices, generate_short_id, NotificationManager, pop, kill, get, serialize_datetime, fromtimestamp, len, is_running
  • generate_short_id — def at line 146; references join, choices, NotificationManager, pop, kill, get, serialize_datetime, fromtimestamp, len, is_running
  • get_notification_manager — def at line 156; references NotificationManager, pop, kill, get, serialize_datetime, fromtimestamp, len, is_running
  • remove — def at line 165; references pop, kill, get, serialize_datetime, fromtimestamp, len, is_running
  • get_data — def at line 172; references get, serialize_datetime, fromtimestamp, len, is_running
  • set_data — def at line 176; references get, serialize_datetime, fromtimestamp, len, is_running
  • get_output_data — def at line 180; references get, serialize_datetime, fromtimestamp, len, is_running
  • set_output_data — def at line 184; references get, serialize_datetime, fromtimestamp, len, is_running
  • output — def at line 189; references get, serialize_datetime, fromtimestamp, len, is_running
  • log_to_all — def at line 214; references all, append, log, kill, kill_process, reset, Agent, communicate, UserMessage, read_prompt, is_alive, get_agent, get, run_task, DeferredTask, start_task, hist_add_user_message, hist_add_tool_result, monologue, _process_chain
  • kill_process — def at line 233; references kill, reset, Agent, communicate, UserMessage, read_prompt, is_alive, get_agent, get, run_task, DeferredTask, start_task, hist_add_user_message, hist_add_tool_result, monologue, _process_chain, call_extensions_async
  • reset — def at line 238; references kill_process, Agent, communicate, UserMessage, read_prompt, is_alive, get_agent, get, run_task, DeferredTask, start_task, hist_add_user_message, hist_add_tool_result, monologue, _process_chain, call_extensions_async
  • nudge — def at line 246; references kill_process, communicate, UserMessage, read_prompt, is_alive, get_agent, get, run_task, DeferredTask, start_task, hist_add_user_message, hist_add_tool_result, monologue, _process_chain, call_extensions_async
  • get_agent — def at line 253; references is_alive, get, run_task, DeferredTask, start_task, hist_add_user_message, hist_add_tool_result, monologue, _process_chain, call_extensions_async
  • is_running — def at line 256; references is_alive, get_agent, get, run_task, DeferredTask, start_task, hist_add_user_message, hist_add_tool_result, monologue, _process_chain, call_extensions_async
  • communicate — def at line 260; references get_agent, is_alive, get, run_task, DeferredTask, start_task, hist_add_user_message, hist_add_tool_result, monologue, _process_chain, call_extensions_async
  • run_task — def at line 280; references DeferredTask, start_task, hist_add_user_message, hist_add_tool_result, monologue, get, _process_chain, call_extensions_async, get_agent
  • _process_chain — def at line 292; references hist_add_user_message, hist_add_tool_result, monologue, get, call_extensions_async, get_agent
  • handle_exception — def at line 314; references field, OrderedDict
  • AgentConfig — class at line 320; references field, OrderedDict
  • UserMessage — class at line 328; references field, OrderedDict
  • LoopData — class at line 335; references OrderedDict
  • __init__ — def at line 336; references OrderedDict
  • Agent — class at line 355; references AgentContext, History
  • __init__ — def at line 365; references AgentContext, History
  • monologue — def at line 387; references LoopData, call_extensions_async, PrintStyle
  • reasoning_callback — def at line 424; references handle_intervention, print
  • stream_callback — def at line 442; references handle_intervention, print
  • prepare_prompt — def at line 565; references set_progress, call_extensions_async, get_system_prompt, output, join, _build_context_message
  • _build_context_message — def at line 624; references Message, read_prompt, stringify
  • handle_exception — def at line 643; references call_extensions_async, get_paths, parse_file, read_prompt_file, is_full_json_template, remove_code_fences, get, now
  • get_system_prompt — def at line 683; references call_extensions_async, get_paths, parse_file, read_prompt_file, is_full_json_template, remove_code_fences, get, now
  • parse_prompt — def at line 691; references get_paths, parse_file, read_prompt_file, is_full_json_template, remove_code_fences, get, now
  • read_prompt — def at line 700; references get_paths, read_prompt_file, is_full_json_template, remove_code_fences, get, now
  • get_data — def at line 708; references get, now
  • set_data — def at line 711; references get, now
  • hist_add_message — def at line 715; references get, now
  • hist_add_user_message — def at line 738; references new_topic, parse_prompt, isinstance, items
  • hist_add_ai_response — def at line 767; references parse_prompt, hist_add_message, metadata_from_llm_result, pop
  • hist_add_warning — def at line 780; references parse_prompt, hist_add_message, pop
  • hist_add_tool_result — def at line 785; references pop
  • concat_messages — def at line 810; references output_text, get_utility_model
  • get_chat_model — def at line 816; references get_utility_model
  • get_utility_model — def at line 820
  • get_embedding_model — def at line 824; references get_utility_model
  • call_utility_model — def at line 828; references get_utility_model
  • stream_callback — def at line 850; references unified_call, call_extensions_async, get_chat_model
  • call_chat_model — def at line 870; references get_chat_model
  • call_chat_model_turn — def at line 914; references get_chat_model, getattr
  • _responses_state_for_model — def at line 1005; references get_data, isinstance
  • _responses_input_items_since — def at line 1016; references messages_since, extend, _responses_input_items_for_message, result_from_metadata, to_dict, dict, output, output_langchain, hasattr, _convert_messages, input_from_messages, get_data, isinstance, get, str, append, set_data
  • _responses_input_items_for_message — def at line 1024; references result_from_metadata, to_dict, dict, output, output_langchain, hasattr, _convert_messages, input_from_messages, get_data, isinstance, get, str, append, set_data
  • _responses_prompt_input_items — def at line 1041; references hasattr, _convert_messages, input_from_messages, get_data, isinstance, get, str, append, set_data
  • _remember_llm_result_state — def at line 1049; references get_data, isinstance, get, str, append, set_data
  • rate_limiter_callback — def at line 1072; references set_progress, wait_if_paused, strip, hist_add_tool_result, hist_add_ai_response, hist_add_user_message, InterventionException, sleep, _log_response_builtin_items, get_data, original_tool_name, function_call_output_item, _execute_tool_request, json_parse_dirty, process_tools, get_instance, get_tool, PrintStyle, print, hist_add_warning
  • handle_intervention — def at line 1080; references wait_if_paused, strip, hist_add_tool_result, set_progress, hist_add_ai_response, hist_add_user_message, InterventionException, sleep, _log_response_builtin_items, get_data, original_tool_name, function_call_output_item, _execute_tool_request, json_parse_dirty, process_tools, get_instance, get_tool, PrintStyle, print, hist_add_warning
  • wait_if_paused — def at line 1100; references sleep, _log_response_builtin_items, get_data, original_tool_name, function_call_output_item, _execute_tool_request, json_parse_dirty, process_tools, get_instance, get_tool, PrintStyle, print, hist_add_warning, log, handle_intervention, before_execution, call_extensions_async
  • process_llm_result_tools — def at line 1104; references _log_response_builtin_items, get_data, original_tool_name, function_call_output_item, _execute_tool_request, json_parse_dirty, process_tools, get_instance, get_tool, PrintStyle, print, hist_add_warning, log, handle_intervention, before_execution, call_extensions_async
  • _execute_tool_request — def at line 1134; references get_instance, get_tool, PrintStyle, print, hist_add_warning, log, handle_intervention, before_execution, call_extensions_async
  • _log_response_builtin_items — def at line 1225; references _handle_responses_computer_call, _handle_responses_mcp_approval_request, log, dumps, get, str
  • _handle_responses_computer_call — def at line 1239; references get, str
  • _handle_responses_mcp_approval_request — def at line 1295; references str, get
  • _computer_call_args — def at line 1319; references get, dict, isinstance
  • _computer_call_output_item — def at line 1369; references str, getattr
  • _clear_responses_pending_state — def at line 1400; references get_data, isinstance, dict, pop, set_data, json_parse_dirty
  • process_tools — def at line 1409; references json_parse_dirty
  • validate_tool_request — def at line 1515; references normalize_tool_request
  • handle_reasoning_stream — def at line 1520; references handle_intervention, call_extensions_async
  • handle_response_stream — def at line 1529; references handle_intervention, len, parse_string, isinstance, call_extensions_async
  • get_tool — def at line 1548; references get_paths, load_classes_from_file, tool_class
  • re_search_session_id — def at line 1584; references search, group

File-level call references


Source: agent.py

Generated by smolify with deterministic-repository-import-v2 · 1 source file