SYMBOL INDEX (2374 symbols across 361 files) FILE: .github/scripts/update_news.py function read_news_items (line 12) | def read_news_items(news_file: Path, max_items: int = 10) -> list[str]: function update_readme (line 42) | def update_readme( function main (line 96) | def main() -> None: FILE: docs/tutorial/_static/language_switch.js function switchV1Language (line 1) | function switchV1Language() { function navigateToV0 (line 10) | function navigateToV0(version) { FILE: docs/tutorial/en/conf.py function skip_member (line 127) | def skip_member(app, what, name, obj, skip, options): function setup (line 139) | def setup(app): FILE: docs/tutorial/en/src/quickstart_agent.py function creating_react_agent (line 102) | async def creating_react_agent() -> None: class MyAgent (line 164) | class MyAgent(AgentBase): method __init__ (line 167) | def __init__(self) -> None: method reply (line 181) | async def reply(self, msg: Msg | list[Msg] | None) -> Msg: method observe (line 209) | async def observe(self, msg: Msg | list[Msg] | None) -> None: method handle_interrupt (line 214) | async def handle_interrupt(self) -> Msg: function run_custom_agent (line 224) | async def run_custom_agent() -> None: FILE: docs/tutorial/en/src/task_a2a.py function agent_card_from_well_known_website (line 87) | async def agent_card_from_well_known_website() -> AgentCard: function agent_card_from_file (line 122) | async def agent_card_from_file() -> AgentCard: function agent_card_from_nacos (line 144) | async def agent_card_from_nacos() -> AgentCard: function a2a_in_chatbot (line 178) | async def a2a_in_chatbot() -> None: function create_worker (line 195) | async def create_worker(query: str) -> ToolResponse: FILE: docs/tutorial/en/src/task_agent.py function example_tool_function (line 250) | async def example_tool_function(tag: str) -> ToolResponse: function example_parallel_tool_calls (line 290) | async def example_parallel_tool_calls() -> None: class Model (line 335) | class Model(BaseModel): function example_structured_output (line 344) | async def example_structured_output() -> None: FILE: docs/tutorial/en/src/task_embedding.py function example_dashscope_embedding (line 42) | async def example_dashscope_embedding() -> None: function example_embedding_cache (line 83) | async def example_embedding_cache() -> None: FILE: docs/tutorial/en/src/task_eval.py class CheckEqual (line 91) | class CheckEqual(MetricBase): method __init__ (line 92) | def __init__( method __call__ (line 104) | async def __call__( class ToyBenchmark (line 133) | class ToyBenchmark(BenchmarkBase): method __init__ (line 134) | def __init__(self): method _load_data (line 142) | def _load_data() -> list[Task]: method __iter__ (line 159) | def __iter__(self) -> Generator[Task, None, None]: method __getitem__ (line 164) | def __getitem__(self, index: int) -> Task: method __len__ (line 168) | def __len__(self) -> int: class ToyBenchAnswerFormat (line 203) | class ToyBenchAnswerFormat(BaseModel): function toy_solution_generation (line 207) | async def toy_solution_generation( function main (line 240) | async def main() -> None: FILE: docs/tutorial/en/src/task_eval_openjudge.py class OpenJudgeMetric (line 92) | class OpenJudgeMetric(MetricBase): method __init__ (line 97) | def __init__( method __call__ (line 118) | async def __call__(self, solution: SolutionOutput) -> MetricResult: class QABenchmark (line 206) | class QABenchmark(BenchmarkBase): method __init__ (line 209) | def __init__(self): method _load_data (line 216) | def _load_data(self): method __iter__ (line 265) | def __iter__(self) -> Generator[Task, None, None]: method __getitem__ (line 269) | def __getitem__(self, index: int) -> Task: method __len__ (line 273) | def __len__(self) -> int: function qa_agent (line 297) | async def qa_agent(task: Task, pre_hook: Callable) -> SolutionOutput: function main (line 328) | async def main() -> None: FILE: docs/tutorial/en/src/task_hook.py function pre_hook_template (line 104) | def pre_hook_template( function post_hook_template (line 142) | def post_hook_template( class TestAgent (line 217) | class TestAgent(AgentBase): method reply (line 220) | async def reply(self, msg: Msg) -> Msg: function instance_pre_reply_hook (line 231) | def instance_pre_reply_hook( function cls_pre_reply_hook (line 245) | def cls_pre_reply_hook( function example_test_hook (line 275) | async def example_test_hook() -> None: FILE: docs/tutorial/en/src/task_long_term_memory.py function basic_usage (line 66) | async def basic_usage(): function record_preferences (line 114) | async def record_preferences(): function retrieve_preferences (line 132) | async def retrieve_preferences(): FILE: docs/tutorial/en/src/task_mcp.py function example_register_stateless_mcp (line 102) | async def example_register_stateless_mcp() -> None: function example_remove_mcp_tools (line 137) | async def example_remove_mcp_tools() -> None: function example_function_level_usage (line 172) | async def example_function_level_usage() -> None: FILE: docs/tutorial/en/src/task_memory.py function in_memory_example (line 104) | async def in_memory_example(): function sqlalchemy_example (line 157) | async def sqlalchemy_example() -> None: function sqlalchemy_context_example (line 202) | async def sqlalchemy_context_example() -> None: function redis_memory_example (line 304) | async def redis_memory_example() -> None: FILE: docs/tutorial/en/src/task_middleware.py function logging_middleware (line 81) | async def logging_middleware( function search_tool (line 108) | async def search_tool(query: str) -> ToolResponse: function example_logging_middleware (line 129) | async def example_logging_middleware() -> None: function transform_middleware (line 165) | async def transform_middleware( function example_transform_middleware (line 184) | async def example_transform_middleware() -> None: function authorization_middleware (line 216) | async def authorization_middleware( function unauthorized_tool (line 246) | async def unauthorized_tool(data: str) -> ToolResponse: function example_authorization_middleware (line 262) | async def example_authorization_middleware() -> None: function middleware_1 (line 316) | async def middleware_1( function middleware_2 (line 335) | async def middleware_2( function example_multiple_middleware (line 354) | async def example_multiple_middleware() -> None: FILE: docs/tutorial/en/src/task_model.py function example_model_call (line 109) | async def example_model_call() -> None: function example_streaming (line 142) | async def example_streaming() -> None: function example_reasoning (line 177) | async def example_reasoning() -> None: FILE: docs/tutorial/en/src/task_pipeline.py function create_agent (line 42) | def create_agent(name: str, age: int, career: str) -> ReActAgent: function example_broadcast_message (line 67) | async def example_broadcast_message(): function check_broadcast_message (line 92) | async def check_broadcast_message(): function run_example_pipeline (line 233) | async def run_example_pipeline() -> None: FILE: docs/tutorial/en/src/task_plan.py function list_tools (line 133) | async def list_tools() -> None: function manual_plan_specification (line 162) | async def manual_plan_specification() -> None: function plan_change_hook_template (line 284) | def plan_change_hook_template(self: PlanNotebook, plan: Plan) -> None: FILE: docs/tutorial/en/src/task_prompt.py function run_formatter_example (line 229) | async def run_formatter_example() -> list[dict]: function run_token_counter (line 258) | async def run_token_counter() -> int: function run_truncated_formatter (line 274) | async def run_truncated_formatter() -> None: FILE: docs/tutorial/en/src/task_rag.py function example_text_reader (line 96) | async def example_text_reader(print_docs: bool) -> list[Document]: function build_knowledge_base (line 148) | async def build_knowledge_base() -> SimpleKnowledge: function example_agentic_manner (line 239) | async def example_agentic_manner() -> None: function example_generic_manner (line 306) | async def example_generic_manner() -> None: function example_multimodal_rag (line 372) | async def example_multimodal_rag() -> None: FILE: docs/tutorial/en/src/task_realtime.py function example_realtime_agent (line 258) | async def example_realtime_agent() -> None: function example_chat_room (line 433) | async def example_chat_room() -> None: FILE: docs/tutorial/en/src/task_state.py class ClassA (line 63) | class ClassA(StateModule): method __init__ (line 64) | def __init__(self) -> None: class ClassB (line 71) | class ClassB(StateModule): method __init__ (line 72) | def __init__(self) -> None: function example_agent_state (line 120) | async def example_agent_state() -> None: function example_session (line 173) | async def example_session() -> None: function example_load_session (line 193) | async def example_load_session() -> None: FILE: docs/tutorial/en/src/task_token.py function example_token_counting (line 49) | async def example_token_counting(): FILE: docs/tutorial/en/src/task_tool.py function tool_function (line 44) | def tool_function(a: int, b: str) -> ToolResponse: function my_search (line 78) | async def my_search(query: str, api_key: str) -> ToolResponse: function example_tool_execution (line 126) | async def example_tool_execution() -> None: function tool_function (line 161) | def tool_function(**kwargs: Any) -> ToolResponse: class ThinkingModel (line 174) | class ThinkingModel(BaseModel): function non_streaming_function (line 205) | async def non_streaming_function() -> ToolResponse: function example_tool_interruption (line 223) | async def example_tool_interruption() -> None: function streaming_function (line 253) | async def streaming_function() -> AsyncGenerator[ToolResponse, None]: function example_streaming_tool_interruption (line 280) | async def example_streaming_tool_interruption() -> None: function navigate (line 326) | def navigate(url: str) -> ToolResponse: function click_element (line 336) | def click_element(element_id: str) -> ToolResponse: function mock_agent_reset_tools (line 408) | async def mock_agent_reset_tools() -> None: FILE: docs/tutorial/en/src/task_tts.py function example_non_realtime_tts (line 91) | async def example_non_realtime_tts() -> None: function example_non_realtime_tts_streaming (line 127) | async def example_non_realtime_tts_streaming() -> None: function example_agent_with_tts (line 208) | async def example_agent_with_tts() -> None: FILE: docs/tutorial/en/src/task_tuner.py function example_workflow_function (line 86) | async def example_workflow_function( function example_judge_function (line 154) | async def example_judge_function( FILE: docs/tutorial/en/src/workflow_concurrent_agents.py class ExampleAgent (line 16) | class ExampleAgent(AgentBase): method __init__ (line 19) | def __init__(self, name: str) -> None: method reply (line 24) | async def reply(self, *args: Any, **kwargs: Any) -> None: function run_concurrent_agents (line 33) | async def run_concurrent_agents() -> None: FILE: docs/tutorial/en/src/workflow_conversation.py function example_multi_agent_prompt (line 104) | async def example_multi_agent_prompt() -> None: function example_msghub (line 171) | async def example_msghub() -> None: function example_memory (line 193) | async def example_memory() -> None: FILE: docs/tutorial/en/src/workflow_handoffs.py function create_worker (line 34) | async def create_worker( function run_handoffs (line 66) | async def run_handoffs() -> None: FILE: docs/tutorial/en/src/workflow_multiagent_debate.py function create_solver_agent (line 39) | def create_solver_agent(name: str) -> ReActAgent: class JudgeModel (line 78) | class JudgeModel(BaseModel): function run_multiagent_debate (line 90) | async def run_multiagent_debate() -> None: FILE: docs/tutorial/en/src/workflow_routing.py class RoutingChoice (line 47) | class RoutingChoice(BaseModel): function example_router_explicit (line 62) | async def example_router_explicit() -> None: function generate_python (line 92) | async def generate_python(demand: str) -> ToolResponse: function generate_poem (line 120) | async def generate_poem(demand: str) -> ToolResponse: function web_search (line 130) | async def web_search(query: str) -> ToolResponse: function example_router_implicit (line 164) | async def example_router_implicit() -> None: FILE: docs/tutorial/zh_CN/conf.py function skip_member (line 127) | def skip_member(app, what, name, obj, skip, options): function setup (line 139) | def setup(app): FILE: docs/tutorial/zh_CN/src/quickstart_agent.py function creating_react_agent (line 101) | async def creating_react_agent() -> None: class MyAgent (line 162) | class MyAgent(AgentBase): method __init__ (line 165) | def __init__(self) -> None: method reply (line 179) | async def reply(self, msg: Msg | list[Msg] | None) -> Msg: method observe (line 207) | async def observe(self, msg: Msg | list[Msg] | None) -> None: method handle_interrupt (line 212) | async def handle_interrupt(self) -> Msg: function run_custom_agent (line 222) | async def run_custom_agent() -> None: FILE: docs/tutorial/zh_CN/src/task_a2a.py function agent_card_from_well_known_website (line 88) | async def agent_card_from_well_known_website() -> AgentCard: function agent_card_from_file (line 123) | async def agent_card_from_file() -> AgentCard: function agent_card_from_nacos (line 145) | async def agent_card_from_nacos() -> AgentCard: function a2a_in_chatbot (line 179) | async def a2a_in_chatbot() -> None: function create_worker (line 196) | async def create_worker(query: str) -> ToolResponse: FILE: docs/tutorial/zh_CN/src/task_agent.py function example_tool_function (line 236) | async def example_tool_function(tag: str) -> ToolResponse: function example_parallel_tool_calls (line 276) | async def example_parallel_tool_calls() -> None: class Model (line 313) | class Model(BaseModel): function example_structured_output (line 320) | async def example_structured_output() -> None: FILE: docs/tutorial/zh_CN/src/task_embedding.py function example_dashscope_embedding (line 42) | async def example_dashscope_embedding() -> None: function example_embedding_cache (line 83) | async def example_embedding_cache() -> None: FILE: docs/tutorial/zh_CN/src/task_eval.py class CheckEqual (line 90) | class CheckEqual(MetricBase): method __init__ (line 91) | def __init__( method __call__ (line 103) | async def __call__( class ToyBenchmark (line 132) | class ToyBenchmark(BenchmarkBase): method __init__ (line 133) | def __init__(self): method _load_data (line 141) | def _load_data() -> list[Task]: method __iter__ (line 158) | def __iter__(self) -> Generator[Task, None, None]: method __getitem__ (line 163) | def __getitem__(self, index: int) -> Task: method __len__ (line 167) | def __len__(self) -> int: class ToyBenchAnswerFormat (line 201) | class ToyBenchAnswerFormat(BaseModel): function toy_solution_generation (line 205) | async def toy_solution_generation( function main (line 238) | async def main() -> None: FILE: docs/tutorial/zh_CN/src/task_eval_openjudge.py class OpenJudgeMetric (line 89) | class OpenJudgeMetric(MetricBase): method __init__ (line 90) | def __init__( method __call__ (line 127) | async def __call__(self, solution: SolutionOutput) -> MetricResult: class QABenchmark (line 213) | class QABenchmark(BenchmarkBase): method __init__ (line 214) | def __init__(self): method _load_data (line 221) | def _load_data(self): method __iter__ (line 270) | def __iter__(self) -> Generator[Task, None, None]: method __getitem__ (line 273) | def __getitem__(self, index: int) -> Task: method __len__ (line 276) | def __len__(self) -> int: function qa_agent (line 299) | async def qa_agent(task: Task, pre_hook: Callable) -> SolutionOutput: function main (line 326) | async def main() -> None: FILE: docs/tutorial/zh_CN/src/task_hook.py function pre_hook_template (line 101) | def pre_hook_template( function post_hook_template (line 137) | def post_hook_template( class TestAgent (line 212) | class TestAgent(AgentBase): method reply (line 215) | async def reply(self, msg: Msg) -> Msg: function instance_pre_reply_hook (line 226) | def instance_pre_reply_hook( function cls_pre_reply_hook (line 240) | def cls_pre_reply_hook( function example_test_hook (line 270) | async def example_test_hook() -> None: FILE: docs/tutorial/zh_CN/src/task_long_term_memory.py function basic_usage (line 62) | async def basic_usage(): function record_preferences (line 106) | async def record_preferences(): function retrieve_preferences (line 120) | async def retrieve_preferences(): FILE: docs/tutorial/zh_CN/src/task_mcp.py function example_register_stateless_mcp (line 104) | async def example_register_stateless_mcp() -> None: function example_remove_mcp_tools (line 136) | async def example_remove_mcp_tools() -> None: function example_function_level_usage (line 168) | async def example_function_level_usage() -> None: FILE: docs/tutorial/zh_CN/src/task_memory.py function in_memory_example (line 94) | async def in_memory_example(): function sqlalchemy_example (line 146) | async def sqlalchemy_example() -> None: function sqlalchemy_context_example (line 190) | async def sqlalchemy_context_example() -> None: function redis_memory_example (line 292) | async def redis_memory_example() -> None: FILE: docs/tutorial/zh_CN/src/task_middleware.py function logging_middleware (line 81) | async def logging_middleware( function search_tool (line 108) | async def search_tool(query: str) -> ToolResponse: function example_logging_middleware (line 129) | async def example_logging_middleware() -> None: function transform_middleware (line 165) | async def transform_middleware( function example_transform_middleware (line 184) | async def example_transform_middleware() -> None: function authorization_middleware (line 216) | async def authorization_middleware( function unauthorized_tool (line 246) | async def unauthorized_tool(data: str) -> ToolResponse: function example_authorization_middleware (line 262) | async def example_authorization_middleware() -> None: function middleware_1 (line 316) | async def middleware_1( function middleware_2 (line 335) | async def middleware_2( function example_multiple_middleware (line 354) | async def example_multiple_middleware() -> None: FILE: docs/tutorial/zh_CN/src/task_model.py function example_model_call (line 109) | async def example_model_call() -> None: function example_streaming (line 142) | async def example_streaming() -> None: function example_reasoning (line 177) | async def example_reasoning() -> None: FILE: docs/tutorial/zh_CN/src/task_pipeline.py function create_agent (line 40) | def create_agent(name: str, age: int, career: str) -> ReActAgent: function example_broadcast_message (line 65) | async def example_broadcast_message(): function check_broadcast_message (line 90) | async def check_broadcast_message(): function run_example_pipeline (line 228) | async def run_example_pipeline() -> None: FILE: docs/tutorial/zh_CN/src/task_plan.py function list_tools (line 125) | async def list_tools() -> None: function manual_plan_specification (line 154) | async def manual_plan_specification() -> None: function plan_change_hook_template (line 264) | def plan_change_hook_template(self: PlanNotebook, plan: Plan) -> None: FILE: docs/tutorial/zh_CN/src/task_prompt.py function run_formatter_example (line 229) | async def run_formatter_example() -> list[dict]: function run_token_counter (line 258) | async def run_token_counter() -> int: function run_truncated_formatter (line 274) | async def run_truncated_formatter() -> None: FILE: docs/tutorial/zh_CN/src/task_rag.py function example_text_reader (line 94) | async def example_text_reader(print_docs: bool) -> list[Document]: function build_knowledge_base (line 144) | async def build_knowledge_base() -> SimpleKnowledge: function example_agentic_manner (line 227) | async def example_agentic_manner() -> None: function example_generic_manner (line 292) | async def example_generic_manner() -> None: function example_multimodal_rag (line 350) | async def example_multimodal_rag() -> None: FILE: docs/tutorial/zh_CN/src/task_realtime.py function example_realtime_agent (line 254) | async def example_realtime_agent() -> None: function example_chat_room (line 426) | async def example_chat_room() -> None: FILE: docs/tutorial/zh_CN/src/task_state.py class ClassA (line 63) | class ClassA(StateModule): method __init__ (line 64) | def __init__(self) -> None: class ClassB (line 71) | class ClassB(StateModule): method __init__ (line 72) | def __init__(self) -> None: function example_agent_state (line 120) | async def example_agent_state() -> None: function example_session (line 169) | async def example_session() -> None: function example_load_session (line 192) | async def example_load_session() -> None: FILE: docs/tutorial/zh_CN/src/task_token.py function example_token_counting (line 55) | async def example_token_counting(): FILE: docs/tutorial/zh_CN/src/task_tool.py function tool_function (line 44) | def tool_function(a: int, b: str) -> ToolResponse: function my_search (line 78) | async def my_search(query: str, api_key: str) -> ToolResponse: function example_tool_execution (line 130) | async def example_tool_execution() -> None: function tool_function (line 165) | def tool_function(**kwargs: Any) -> ToolResponse: class ThinkingModel (line 178) | class ThinkingModel(BaseModel): function non_streaming_function (line 209) | async def non_streaming_function() -> ToolResponse: function example_tool_interruption (line 227) | async def example_tool_interruption() -> None: function streaming_function (line 257) | async def streaming_function() -> AsyncGenerator[ToolResponse, None]: function example_streaming_tool_interruption (line 284) | async def example_streaming_tool_interruption() -> None: function navigate (line 331) | def navigate(url: str) -> ToolResponse: function click_element (line 341) | def click_element(element_id: str) -> ToolResponse: function mock_agent_reset_tools (line 413) | async def mock_agent_reset_tools() -> None: FILE: docs/tutorial/zh_CN/src/task_tts.py function example_non_realtime_tts (line 88) | async def example_non_realtime_tts() -> None: function example_non_realtime_tts_streaming (line 120) | async def example_non_realtime_tts_streaming() -> None: function example_agent_with_tts (line 196) | async def example_agent_with_tts() -> None: FILE: docs/tutorial/zh_CN/src/task_tuner.py function example_workflow_function (line 86) | async def example_workflow_function( function example_judge_function (line 153) | async def example_judge_function( FILE: docs/tutorial/zh_CN/src/workflow_concurrent_agents.py class ExampleAgent (line 17) | class ExampleAgent(AgentBase): method __init__ (line 20) | def __init__(self, name: str) -> None: method reply (line 25) | async def reply(self, *args: Any, **kwargs: Any) -> None: function run_concurrent_agents (line 34) | async def run_concurrent_agents() -> None: FILE: docs/tutorial/zh_CN/src/workflow_conversation.py function example_multi_agent_prompt (line 99) | async def example_multi_agent_prompt() -> None: function example_msghub (line 162) | async def example_msghub() -> None: function example_memory (line 185) | async def example_memory() -> None: FILE: docs/tutorial/zh_CN/src/workflow_handoffs.py function create_worker (line 36) | async def create_worker( function run_handoffs (line 68) | async def run_handoffs() -> None: FILE: docs/tutorial/zh_CN/src/workflow_multiagent_debate.py function create_solver_agent (line 32) | def create_solver_agent(name: str) -> ReActAgent: class JudgeModel (line 69) | class JudgeModel(BaseModel): function run_multiagent_debate (line 79) | async def run_multiagent_debate() -> None: FILE: docs/tutorial/zh_CN/src/workflow_routing.py class RoutingChoice (line 47) | class RoutingChoice(BaseModel): function example_router_explicit (line 62) | async def example_router_explicit() -> None: function generate_python (line 92) | async def generate_python(demand: str) -> ToolResponse: function generate_poem (line 120) | async def generate_poem(demand: str) -> ToolResponse: function web_search (line 130) | async def web_search(query: str) -> ToolResponse: function example_router_implicit (line 164) | async def example_router_implicit() -> None: FILE: examples/agent/a2a_agent/main.py function main (line 10) | async def main() -> None: FILE: examples/agent/a2a_agent/setup_a2a_server.py class SimpleStreamHandler (line 31) | class SimpleStreamHandler: method on_message_send_stream (line 35) | async def on_message_send_stream( FILE: examples/agent/a2ui_agent/samples/client/a2a_client.py function main (line 22) | async def main() -> None: FILE: examples/agent/a2ui_agent/samples/client/lit/contact/client.ts type A2TextPayload (line 19) | type A2TextPayload = { type A2DataPayload (line 24) | type A2DataPayload = { type A2AServerPayload (line 29) | type A2AServerPayload = class A2UIClient (line 33) | class A2UIClient { method ready (line 35) | get ready() { method send (line 39) | async send( FILE: examples/agent/a2ui_agent/samples/client/lit/contact/contact.ts class A2UIContactFinder (line 49) | class A2UIContactFinder extends SignalWatcher(LitElement) { method render (line 182) | render() { method #maybeRenderError (line 190) | #maybeRenderError() { method #maybeRenderForm (line 196) | #maybeRenderForm() { method #maybeRenderData (line 234) | #maybeRenderData() { method #sendAndProcessMessage (line 308) | async #sendAndProcessMessage(request) { method #sendMessage (line 316) | async #sendMessage( method snackbar (line 335) | snackbar( method unsnackbar (line 369) | unsnackbar(id?: SnackbarUUID) { FILE: examples/agent/a2ui_agent/samples/client/lit/contact/events/events.ts class SnackbarActionEvent (line 25) | class SnackbarActionEvent extends Event { method constructor (line 28) | constructor( FILE: examples/agent/a2ui_agent/samples/client/lit/contact/middleware/a2a.ts constant A2AUI_MIME_TYPE (line 28) | const A2AUI_MIME_TYPE = "application/json+a2aui"; method configureServer (line 66) | configureServer(server: ViteDevServer) { FILE: examples/agent/a2ui_agent/samples/client/lit/contact/types/types.ts type SnackType (line 19) | enum SnackType { type SnackbarUUID (line 27) | type SnackbarUUID = ReturnType; type SnackbarAction (line 29) | type SnackbarAction = { type SnackbarMessage (line 36) | type SnackbarMessage = { FILE: examples/agent/a2ui_agent/samples/client/lit/contact/ui/custom-components/org-chart.ts type Action (line 25) | type Action = v0_8.Types.Action; type OrgChartNode (line 27) | interface OrgChartNode { class OrgChart (line 33) | class OrgChart extends Root { method render (line 105) | render() { method handleNodeClick (line 130) | private handleNodeClick(node: OrgChartNode) { FILE: examples/agent/a2ui_agent/samples/client/lit/contact/ui/custom-components/premium-text-field.ts class PremiumTextField (line 21) | class PremiumTextField extends Root { method render (line 88) | render() { FILE: examples/agent/a2ui_agent/samples/client/lit/contact/ui/custom-components/register-components.ts function registerContactComponents (line 21) | function registerContactComponents() { FILE: examples/agent/a2ui_agent/samples/client/lit/contact/ui/snackbar.ts constant DEFAULT_TIMEOUT (line 24) | const DEFAULT_TIMEOUT = 8000; class Snackbar (line 27) | class Snackbar extends LitElement { method show (line 170) | show(message: SnackbarMessage, replaceAll = false) { method hide (line 198) | hide(id?: SnackbarUUID) { method render (line 218) | render() { FILE: examples/agent/a2ui_agent/samples/client/lit/shell/app.ts class A2UILayoutEditor (line 56) | class A2UILayoutEditor extends SignalWatcher(LitElement) { method #maybeRenderError (line 277) | #maybeRenderError() { method connectedCallback (line 283) | connectedCallback() { method render (line 306) | render() { method #renderThemeToggle (line 315) | #renderThemeToggle() { method #maybeRenderForm (line 336) | #maybeRenderForm() { method #startLoadingAnimation (line 383) | #startLoadingAnimation() { method #stopLoadingAnimation (line 397) | #stopLoadingAnimation() { method #sendMessage (line 404) | async #sendMessage( method #maybeRenderData (line 426) | #maybeRenderData() { method #sendAndProcessMessage (line 509) | async #sendAndProcessMessage(request) { method snackbar (line 519) | snackbar( method unsnackbar (line 553) | unsnackbar(id?: SnackbarUUID) { FILE: examples/agent/a2ui_agent/samples/client/lit/shell/client.ts constant A2AUI_MIME_TYPE (line 21) | const A2AUI_MIME_TYPE = "application/json+a2aui"; class A2UIClient (line 23) | class A2UIClient { method constructor (line 27) | constructor(serverUrl: string = "") { method ready (line 32) | get ready() { method #getClient (line 36) | async #getClient() { method send (line 55) | async send( FILE: examples/agent/a2ui_agent/samples/client/lit/shell/configs/types.ts type AppConfig (line 22) | interface AppConfig { FILE: examples/agent/a2ui_agent/samples/client/lit/shell/events/events.ts class SnackbarActionEvent (line 25) | class SnackbarActionEvent extends Event { method constructor (line 28) | constructor( FILE: examples/agent/a2ui_agent/samples/client/lit/shell/middleware/a2a.ts constant A2AUI_MIME_TYPE (line 28) | const A2AUI_MIME_TYPE = "application/json+a2aui"; method configureServer (line 66) | configureServer(server: ViteDevServer) { FILE: examples/agent/a2ui_agent/samples/client/lit/shell/theme/clone-default-theme.ts function cloneDefaultTheme (line 20) | function cloneDefaultTheme(): v0_8.Types.Theme { FILE: examples/agent/a2ui_agent/samples/client/lit/shell/types/types.ts type SnackType (line 19) | enum SnackType { type SnackbarUUID (line 27) | type SnackbarUUID = ReturnType; type SnackbarAction (line 29) | type SnackbarAction = { type SnackbarMessage (line 36) | type SnackbarMessage = { FILE: examples/agent/a2ui_agent/samples/client/lit/shell/ui/snackbar.ts constant DEFAULT_TIMEOUT (line 24) | const DEFAULT_TIMEOUT = 8000; class Snackbar (line 27) | class Snackbar extends LitElement { method show (line 170) | show(message: SnackbarMessage, replaceAll = false) { method hide (line 198) | hide(id?: SnackbarUUID) { method render (line 218) | render() { FILE: examples/agent/a2ui_agent/samples/general_agent/a2ui_utils.py class A2UIResponse (line 23) | class A2UIResponse(BaseModel): function check_a2ui_extension (line 31) | def check_a2ui_extension(*args: Any) -> bool: function transfer_ui_event_to_query (line 73) | def transfer_ui_event_to_query(ui_event_part: dict) -> str: function pre_process_request_with_ui_event (line 116) | def pre_process_request_with_ui_event(message: Message) -> Any: function _find_json_end (line 148) | def _find_json_end(json_string: str) -> int: function extract_ui_json_from_text (line 182) | def extract_ui_json_from_text(content_str: str) -> tuple[str, None]: function check_a2ui_json_in_message (line 211) | def check_a2ui_json_in_message( function post_process_a2a_message_for_ui (line 255) | def post_process_a2a_message_for_ui( FILE: examples/agent/a2ui_agent/samples/general_agent/prompt_builder.py function get_ui_prompt (line 21) | def get_ui_prompt() -> str: FILE: examples/agent/a2ui_agent/samples/general_agent/setup_a2ui_server.py class SimpleStreamHandler (line 35) | class SimpleStreamHandler: method _prepare_final_message (line 44) | async def _prepare_final_message( method on_message_send (line 85) | async def on_message_send( method on_message_send_stream (line 147) | async def on_message_send_stream( FILE: examples/agent/a2ui_agent/samples/general_agent/skills/A2UI_response_generator/view_a2ui_examples.py function view_a2ui_examples (line 49) | def view_a2ui_examples(template_name: str) -> str: FILE: examples/agent/a2ui_agent/samples/general_agent/skills/A2UI_response_generator/view_a2ui_schema.py function view_a2ui_schema (line 16) | def view_a2ui_schema(schema_category: str = "BASE_SCHEMA") -> str: FILE: examples/agent/browser_agent/browser_agent.py class EmptyModel (line 48) | class EmptyModel(BaseModel): class BrowserAgent (line 90) | class BrowserAgent(ReActAgent): method __init__ (line 98) | def __init__( method reply (line 165) | async def reply( # pylint: disable=R0912,R0915 method _pure_reasoning (line 283) | async def _pure_reasoning( method _reasoning_with_observation (line 345) | async def _reasoning_with_observation(self) -> Msg: method _summarize_mem (line 413) | async def _summarize_mem(self) -> None: method _build_observation (line 419) | async def _build_observation(self) -> Msg: method _update_chunk_observation_status (line 427) | async def _update_chunk_observation_status( method _acting (line 473) | async def _acting(self, tool_call: ToolUseBlock) -> dict | None: method _clean_tool_excution_content (line 516) | def _clean_tool_excution_content(self, output_msg: Msg) -> Msg: method _task_decomposition_and_reformat (line 527) | async def _task_decomposition_and_reformat( method _navigate_to_start_url (line 644) | async def _navigate_to_start_url(self) -> None: method _get_snapshot_in_text (line 676) | async def _get_snapshot_in_text(self) -> list[str]: method _memory_summarizing (line 693) | async def _memory_summarizing(self) -> None: method _get_screenshot (line 746) | async def _get_screenshot(self) -> Optional[str]: method _filter_execution_text (line 778) | def _filter_execution_text( method _split_snapshot_by_chunk (line 794) | def _split_snapshot_by_chunk( method observe_by_chunk (line 805) | def observe_by_chunk(self, image_data: str | None = "") -> Msg: method browser_subtask_manager (line 830) | async def browser_subtask_manager( # pylint: disable=R0912,R0915 method browser_generate_final_response (line 961) | async def browser_generate_final_response( method image_understanding (line 1056) | async def image_understanding( method _validate_finish_status (line 1166) | async def _validate_finish_status(self, summary: str) -> str: method _register_skill_tool (line 1207) | def _register_skill_tool( method _supports_multimodal (line 1245) | def _supports_multimodal(self) -> bool: FILE: examples/agent/browser_agent/build_in_helper/_file_download.py class EmptyModel (line 34) | class EmptyModel(BaseModel): class FileDownloadAgent (line 40) | class FileDownloadAgent(ReActAgent): method __init__ (line 45) | def __init__( method file_download_final_response (line 78) | async def file_download_final_response( function _build_initial_instruction (line 143) | def _build_initial_instruction( function file_download (line 160) | async def file_download( FILE: examples/agent/browser_agent/build_in_helper/_form_filling.py class EmptyModel (line 32) | class EmptyModel(BaseModel): class FormFillingAgent (line 38) | class FormFillingAgent(ReActAgent): method __init__ (line 43) | def __init__( method form_filling_final_response (line 62) | async def form_filling_final_response( function _build_initial_instruction (line 127) | def _build_initial_instruction( function form_filling (line 141) | async def form_filling( FILE: examples/agent/browser_agent/build_in_helper/_image_understanding.py function image_understanding (line 23) | async def image_understanding( FILE: examples/agent/browser_agent/build_in_helper/_video_understanding.py function video_understanding (line 27) | async def video_understanding( function audio2text (line 113) | def audio2text(audio_path: str) -> str: function extract_frames (line 136) | def extract_frames( function extract_audio (line 202) | def extract_audio(video_path: str, audio_path: str) -> str: function _probe_video_duration (line 240) | def _probe_video_duration(video_path: str) -> Optional[float]: function _build_multimodal_blocks (line 271) | def _build_multimodal_blocks( function _prepare_workdir (line 307) | def _prepare_workdir(browser_agent: Any) -> str: function _error_response (line 319) | def _error_response(message: str) -> ToolResponse: FILE: examples/agent/browser_agent/main.py class FinalResult (line 19) | class FinalResult(BaseModel): function main (line 27) | async def main( function parse_arguments (line 82) | def parse_arguments() -> argparse.Namespace: FILE: examples/agent/deep_research_agent/built_in_prompt/promptmodule.py class SubtasksDecomposition (line 6) | class SubtasksDecomposition(BaseModel): class WebExtraction (line 32) | class WebExtraction(BaseModel): class FollowupJudge (line 62) | class FollowupJudge(BaseModel): class ReflectFailure (line 77) | class ReflectFailure(BaseModel): FILE: examples/agent/deep_research_agent/deep_research_agent.py class SubTaskItem (line 56) | class SubTaskItem(BaseModel): class DeepResearchAgent (line 64) | class DeepResearchAgent(ReActAgent): method __init__ (line 90) | def __init__( method _ensure_mcp_initialized (line 192) | async def _ensure_mcp_initialized(self) -> None: method reply (line 201) | async def reply( method _acting (line 295) | async def _acting(self, tool_call: ToolUseBlock) -> Msg | None: method get_model_output (line 435) | async def get_model_output( method call_specific_tool (line 477) | async def call_specific_tool( method decompose_and_expand_subtask (line 522) | async def decompose_and_expand_subtask(self) -> ToolResponse: method _follow_up (line 591) | async def _follow_up( method summarize_intermediate_results (line 739) | async def summarize_intermediate_results(self) -> ToolResponse: method _generate_deepresearch_report (line 868) | async def _generate_deepresearch_report( method _summarizing (line 954) | async def _summarizing(self) -> Msg: method reflect_failure (line 976) | async def reflect_failure(self) -> ToolResponse: method generate_response (line 1085) | async def generate_response( # FILE: examples/agent/deep_research_agent/main.py function main (line 16) | async def main(user_query: str) -> None: FILE: examples/agent/deep_research_agent/utils.py function get_prompt_from_file (line 12) | def get_prompt_from_file( function truncate_by_words (line 25) | def truncate_by_words( function truncate_search_result (line 56) | def truncate_search_result( function generate_structure_output (line 77) | def generate_structure_output(**kwargs: Any) -> ToolResponse: function get_dynamic_tool_call_json (line 99) | def get_dynamic_tool_call_json(data_model_type: Type[BaseModel]) -> list... function get_structure_output (line 131) | def get_structure_output(blocks: list | Sequence) -> dict: function load_prompt_dict (line 164) | def load_prompt_dict() -> dict: FILE: examples/agent/meta_planner_agent/main.py function main (line 15) | async def main() -> None: FILE: examples/agent/meta_planner_agent/tool.py class ResultModel (line 26) | class ResultModel(BaseModel): function _convert_to_text_block (line 43) | def _convert_to_text_block(msgs: list[Msg]) -> list[TextBlock]: function create_worker (line 63) | async def create_worker( FILE: examples/agent/react_agent/main.py function main (line 18) | async def main() -> None: FILE: examples/agent/realtime_voice_agent/run_server.py function get (line 33) | async def get() -> FileResponse: function check_models (line 40) | async def check_models() -> dict: function frontend_receive (line 49) | async def frontend_receive( function single_agent_endpoint (line 67) | async def single_agent_endpoint( FILE: examples/agent/voice_agent/main.py function main (line 15) | async def main() -> None: FILE: examples/deployment/planning_agent/main.py function handle_input (line 22) | async def handle_input( function chat_endpoint (line 92) | async def chat_endpoint() -> Response: FILE: examples/deployment/planning_agent/test_post.py function send_post (line 7) | def send_post(user_query: str) -> None: FILE: examples/deployment/planning_agent/tool.py class ResultModel (line 26) | class ResultModel(BaseModel): function _convert_to_text_block (line 43) | def _convert_to_text_block(msgs: list[Msg]) -> list[TextBlock]: function create_worker (line 63) | async def create_worker( FILE: examples/evaluation/ace_bench/main.py function react_agent_solution (line 23) | async def react_agent_solution( function main (line 86) | async def main() -> None: FILE: examples/functionality/agent_skill/main.py function main (line 19) | async def main() -> None: FILE: examples/functionality/agent_skill/skill/analyzing-agentscope-library/view_agentscope_module.py function get_class_signature (line 11) | def get_class_signature(cls: type) -> str: function get_function_signature (line 57) | def get_function_signature(func: Callable) -> str: class FuncOrCls (line 69) | class FuncOrCls(BaseModel): method __init__ (line 84) | def __init__( function _truncate_docstring (line 103) | def _truncate_docstring(docstring: str, max_length: int = 200) -> str: function get_agentscope_module_signatures (line 121) | def get_agentscope_module_signatures() -> list[FuncOrCls]: function view_agentscope_library (line 201) | def view_agentscope_library( FILE: examples/functionality/long_term_memory/mem0/memory_example.py function main (line 26) | async def main() -> None: FILE: examples/functionality/long_term_memory/reme/personal_memory_example.py function test_record_to_memory (line 31) | async def test_record_to_memory( function test_retrieve_from_memory (line 60) | async def test_retrieve_from_memory( function test_record_direct (line 82) | async def test_record_direct(memory: ReMePersonalLongTermMemory) -> None: function test_retrieve_direct (line 128) | async def test_retrieve_direct(memory: ReMePersonalLongTermMemory) -> None: function test_react_agent_with_memory (line 157) | async def test_react_agent_with_memory( function main (line 245) | async def main() -> None: FILE: examples/functionality/long_term_memory/reme/task_memory_example.py function test_record_to_memory (line 32) | async def test_record_to_memory(memory: ReMeTaskLongTermMemory) -> None: function test_retrieve_from_memory (line 72) | async def test_retrieve_from_memory( function test_record_direct (line 107) | async def test_record_direct(memory: ReMeTaskLongTermMemory) -> None: function test_retrieve_direct (line 156) | async def test_retrieve_direct(memory: ReMeTaskLongTermMemory) -> None: function test_react_agent_with_memory (line 185) | async def test_react_agent_with_memory( function main (line 292) | async def main() -> None: FILE: examples/functionality/long_term_memory/reme/tool_memory_example.py function web_search (line 39) | async def web_search(query: str, max_results: int = 5) -> ToolResponse: function calculate (line 61) | async def calculate(expression: str) -> ToolResponse: function record_tool_history (line 97) | async def record_tool_history( function retrieve_tool_guidelines (line 204) | async def retrieve_tool_guidelines( function use_react_agent_with_tool_memory (line 265) | async def use_react_agent_with_tool_memory( function main (line 347) | async def main() -> None: FILE: examples/functionality/mcp/main.py class NumberResult (line 28) | class NumberResult(BaseModel): function main (line 34) | async def main() -> None: FILE: examples/functionality/mcp/mcp_add.py function add (line 11) | def add(a: int, b: int) -> int: FILE: examples/functionality/mcp/mcp_multiply.py function multiply (line 11) | def multiply(c: int, d: int) -> int: FILE: examples/functionality/plan/main_agent_managed_plan.py function main (line 21) | async def main() -> None: FILE: examples/functionality/plan/main_manual_plan.py function main (line 23) | async def main() -> None: FILE: examples/functionality/rag/agentic_usage.py function main (line 33) | async def main() -> None: FILE: examples/functionality/rag/basic_usage.py function main (line 15) | async def main() -> None: FILE: examples/functionality/rag/multimodal_rag.py function example_multimodal_rag (line 25) | async def example_multimodal_rag() -> None: FILE: examples/functionality/rag/react_agent_integration.py function main (line 14) | async def main() -> None: FILE: examples/functionality/session_with_sqlite/main.py function main (line 16) | async def main(username: str, query: str) -> None: FILE: examples/functionality/session_with_sqlite/sqlite_session.py class SqliteSession (line 12) | class SqliteSession(SessionBase): method __init__ (line 15) | def __init__( method save_session_state (line 27) | async def save_session_state( method load_session_state (line 69) | async def load_session_state( FILE: examples/functionality/short_term_memory/memory_compression/main.py function main (line 11) | async def main() -> None: FILE: examples/functionality/short_term_memory/reme/reme_short_term_memory.py class ReMeShortTermMemory (line 17) | class ReMeShortTermMemory(InMemoryMemory): method __init__ (line 39) | def __init__( method __aenter__ (line 156) | async def __aenter__(self) -> "ReMeShortTermMemory": method __aexit__ (line 166) | async def __aexit__( method get_memory (line 180) | async def get_memory(self) -> list[Msg]: method list_to_msg (line 269) | def list_to_msg(messages: list[dict[str, Any]]) -> list[Msg]: method retrieve (line 340) | async def retrieve(self, *args: Any, **kwargs: Any) -> None: FILE: examples/functionality/short_term_memory/reme/short_term_memory_example.py function main (line 18) | async def main() -> None: FILE: examples/functionality/stream_printing_messages/multi_agent.py function create_agent (line 13) | def create_agent(name: str) -> ReActAgent: function workflow (line 27) | async def workflow( function main (line 48) | async def main() -> None: FILE: examples/functionality/stream_printing_messages/single_agent.py function main (line 21) | async def main() -> None: FILE: examples/functionality/structured_output/main.py class TableModel (line 18) | class TableModel(BaseModel): class ChoiceModel (line 29) | class ChoiceModel(BaseModel): function main (line 37) | async def main() -> None: FILE: examples/functionality/tts/main.py function main (line 19) | async def main() -> None: FILE: examples/functionality/vector_store/alibabacloud_mysql_vector/main.py function example_basic_operations (line 12) | async def example_basic_operations() -> None: function example_filter_search (line 111) | async def example_filter_search() -> None: function example_distance_metrics (line 214) | async def example_distance_metrics() -> None: function main (line 259) | async def main() -> None: FILE: examples/functionality/vector_store/milvus_lite/main.py function example_basic_operations (line 12) | async def example_basic_operations() -> None: function example_filter_search (line 103) | async def example_filter_search() -> None: function example_multiple_chunks (line 200) | async def example_multiple_chunks() -> None: function example_distance_metrics (line 264) | async def example_distance_metrics() -> None: function main (line 303) | async def main() -> None: FILE: examples/functionality/vector_store/mongodb/main.py function example_basic_operations (line 14) | async def example_basic_operations() -> None: function example_filter_search (line 109) | async def example_filter_search() -> None: function example_multiple_chunks (line 214) | async def example_multiple_chunks() -> None: function example_distance_metrics (line 283) | async def example_distance_metrics() -> None: function main (line 327) | async def main() -> None: FILE: examples/functionality/vector_store/oceanbase/main.py function _create_store (line 14) | def _create_store( function example_basic_operations (line 30) | async def example_basic_operations() -> None: function example_filter_search (line 116) | async def example_filter_search() -> None: function example_multiple_chunks (line 218) | async def example_multiple_chunks() -> None: function example_distance_metrics (line 285) | async def example_distance_metrics() -> None: function main (line 326) | async def main() -> None: FILE: examples/game/werewolves/game.py function hunter_stage (line 51) | async def hunter_stage( function werewolves_game (line 67) | async def werewolves_game(agents: list[ReActAgent]) -> None: FILE: examples/game/werewolves/main.py function get_official_agents (line 18) | def get_official_agents(name: str) -> ReActAgent: function main (line 91) | async def main() -> None: FILE: examples/game/werewolves/prompt.py class EnglishPrompts (line 5) | class EnglishPrompts: class ChinesePrompts (line 131) | class ChinesePrompts: FILE: examples/game/werewolves/structured_model.py class DiscussionModel (line 9) | class DiscussionModel(BaseModel): function get_vote_model (line 17) | def get_vote_model(agents: list[AgentBase]) -> type[BaseModel]: class WitchResurrectModel (line 30) | class WitchResurrectModel(BaseModel): function get_poison_model (line 38) | def get_poison_model(agents: list[AgentBase]) -> type[BaseModel]: function get_seer_model (line 76) | def get_seer_model(agents: list[AgentBase]) -> type[BaseModel]: function get_hunter_model (line 89) | def get_hunter_model(agents: list[AgentBase]) -> type[BaseModel]: FILE: examples/game/werewolves/utils.py function majority_vote (line 19) | def majority_vote(votes: list[str]) -> tuple: function names_to_str (line 29) | def names_to_str(agents: list[str] | list[ReActAgent]) -> str: class EchoAgent (line 48) | class EchoAgent(AgentBase): method __init__ (line 51) | def __init__(self, tts_model: TTSModelBase | None = None) -> None: method reply (line 57) | async def reply(self, content: str) -> Msg: method handle_interrupt (line 77) | async def handle_interrupt( method observe (line 84) | async def observe(self, msg: Msg | list[Msg] | None) -> None: class Players (line 88) | class Players: method __init__ (line 91) | def __init__(self) -> None: method add_player (line 105) | def add_player(self, player: ReActAgent, role: str) -> None: method update_players (line 132) | def update_players(self, dead_players: list[ReActAgent]) -> None: method print_roles (line 152) | def print_roles(self) -> None: method check_winning (line 158) | def check_winning(self) -> str | None: FILE: examples/integration/alibabacloud_api_mcp/main.py function require_env_var (line 62) | def require_env_var(name: str) -> str: function main (line 70) | async def main() -> None: FILE: examples/integration/alibabacloud_api_mcp/oauth_handler.py class InMemoryTokenStorage (line 72) | class InMemoryTokenStorage(TokenStorage): method __init__ (line 75) | def __init__(self) -> None: method get_tokens (line 79) | async def get_tokens(self) -> OAuthToken | None: method set_tokens (line 83) | async def set_tokens(self, tokens: OAuthToken) -> None: method get_client_info (line 87) | async def get_client_info(self) -> OAuthClientInformationFull | None: method set_client_info (line 91) | async def set_client_info( class CallbackHandler (line 99) | class CallbackHandler(BaseHTTPRequestHandler): method __init__ (line 102) | def __init__( method do_GET (line 112) | def do_GET(self) -> None: class CallbackServer (line 162) | class CallbackServer: method __init__ (line 165) | def __init__(self, port: int = 3000) -> None: method start (line 174) | def start(self) -> None: method stop (line 186) | def stop(self) -> None: method wait_for_callback (line 195) | async def wait_for_callback( function handle_redirect (line 226) | async def handle_redirect(auth_url: str) -> None: function handle_callback (line 242) | async def handle_callback() -> tuple[str, str | None]: FILE: examples/integration/qwen_deep_research_model/main.py function main (line 10) | async def main() -> None: FILE: examples/integration/qwen_deep_research_model/qwen_deep_research_agent.py class QwenDeepResearchAgent (line 17) | class QwenDeepResearchAgent(AgentBase): method __init__ (line 36) | def __init__( method reply (line 60) | async def reply( method _call_model (line 126) | async def _call_model(self, step_name: str) -> str: method _process_responses (line 165) | async def _process_responses( method _handle_web_research_phase (line 283) | def _handle_web_research_phase( method _log_status (line 328) | def _log_status(self, status: str) -> None: method _log_usage (line 343) | def _log_usage(self, response: GenerationResponse) -> None: method observe (line 356) | async def observe(self, msg: Msg | list[Msg] | None) -> None: method handle_interrupt (line 371) | async def handle_interrupt(self, *args: Any, **kwargs: Any) -> Msg: method reset_memory (line 386) | async def reset_memory(self) -> None: FILE: examples/tuner/react_agent/main.py function run_react_agent (line 19) | async def run_react_agent( function gsm8k_judge (line 61) | async def gsm8k_judge( FILE: examples/workflows/multiagent_concurrent/main.py class ExampleAgent (line 14) | class ExampleAgent(AgentBase): method __init__ (line 17) | def __init__(self, name: str) -> None: method reply (line 27) | async def reply(self, *args: Any, **kwargs: Any) -> Msg: method handle_interrupt (line 55) | async def handle_interrupt( method observe (line 63) | async def observe(self, *args: Any, **kwargs: Any) -> None: function main (line 67) | async def main() -> None: FILE: examples/workflows/multiagent_conversation/main.py function create_participant_agent (line 14) | def create_participant_agent( function main (line 38) | async def main() -> None: FILE: examples/workflows/multiagent_debate/main.py function create_solver_agent (line 29) | def create_solver_agent(name: str) -> ReActAgent: class JudgeModel (line 72) | class JudgeModel(BaseModel): function run_multiagent_debate (line 85) | async def run_multiagent_debate() -> None: FILE: examples/workflows/multiagent_realtime/run_server.py function get (line 29) | async def get() -> FileResponse: function model_availability (line 36) | async def model_availability() -> dict: function frontend_receive (line 45) | async def frontend_receive( function multi_agent_endpoint (line 63) | async def multi_agent_endpoint( FILE: src/agentscope/__init__.py function _generate_random_suffix (line 16) | def _generate_random_suffix(length: int) -> str: function init (line 72) | def init( FILE: src/agentscope/_logging.py function setup_logger (line 15) | def setup_logger( FILE: src/agentscope/_run_config.py class _ConfigCls (line 6) | class _ConfigCls: method __init__ (line 9) | def __init__( method run_id (line 26) | def run_id(self) -> str: method run_id (line 31) | def run_id(self, value: str) -> None: method created_at (line 36) | def created_at(self) -> str: method created_at (line 41) | def created_at(self, value: str) -> None: method project (line 46) | def project(self) -> str: method project (line 51) | def project(self, value: str) -> None: method name (line 56) | def name(self) -> str: method name (line 61) | def name(self, value: str) -> None: method trace_enabled (line 66) | def trace_enabled(self) -> bool: method trace_enabled (line 71) | def trace_enabled(self, value: bool) -> None: FILE: src/agentscope/_utils/_common.py function _json_loads_with_repair (line 31) | def _json_loads_with_repair( function _is_accessible_local_file (line 72) | def _is_accessible_local_file(url: str) -> bool: function _get_timestamp (line 81) | def _get_timestamp(add_random_suffix: bool = False) -> str: function _is_async_func (line 92) | async def _is_async_func(func: Callable) -> bool: function _execute_async_or_sync_func (line 108) | async def _execute_async_or_sync_func( function _get_bytes_from_web_url (line 134) | def _get_bytes_from_web_url( function _save_base64_data (line 167) | def _save_base64_data( function _extract_json_schema_from_mcp_tool (line 191) | def _extract_json_schema_from_mcp_tool(tool: Tool) -> dict[str, Any]: function _remove_title_field (line 214) | def _remove_title_field(schema: dict) -> None: function _create_tool_from_base_model (line 241) | def _create_tool_from_base_model( function _map_text_to_uuid (line 300) | def _map_text_to_uuid(text: str) -> str: function _parse_tool_function (line 314) | def _parse_tool_function( function _resample_pcm_delta (line 433) | def _resample_pcm_delta( FILE: src/agentscope/_utils/_mixin.py class DictMixin (line 5) | class DictMixin(dict): FILE: src/agentscope/a2a/_base.py class AgentCardResolverBase (line 12) | class AgentCardResolverBase: method get_agent_card (line 19) | async def get_agent_card(self, *args: Any, **kwargs: Any) -> AgentCard: FILE: src/agentscope/a2a/_file_resolver.py class FileAgentCardResolver (line 15) | class FileAgentCardResolver(AgentCardResolverBase): method __init__ (line 46) | def __init__( method get_agent_card (line 58) | async def get_agent_card(self) -> AgentCard: FILE: src/agentscope/a2a/_nacos_resolver.py class NacosAgentCardResolver (line 17) | class NacosAgentCardResolver(AgentCardResolverBase): method __init__ (line 25) | def __init__( method get_agent_card (line 59) | async def get_agent_card(self) -> AgentCard: FILE: src/agentscope/a2a/_well_known_resolver.py class WellKnownAgentCardResolver (line 15) | class WellKnownAgentCardResolver(AgentCardResolverBase): method __init__ (line 18) | def __init__( method get_agent_card (line 35) | async def get_agent_card(self) -> AgentCard: FILE: src/agentscope/agent/_a2a_agent.py class A2AAgent (line 29) | class A2AAgent(AgentBase): method __init__ (line 48) | def __init__( method state_dict (line 114) | def state_dict(self) -> dict: method load_state_dict (line 125) | def load_state_dict(self, state_dict: dict, strict: bool = True) -> None: method observe (line 154) | async def observe(self, msg: Msg | list[Msg] | None) -> None: method reply (line 177) | async def reply( method handle_interrupt (line 263) | async def handle_interrupt( FILE: src/agentscope/agent/_agent_base.py class AgentBase (line 30) | class AgentBase(StateModule, metaclass=_AgentMeta): method __init__ (line 140) | def __init__(self) -> None: method observe (line 185) | async def observe(self, msg: Msg | list[Msg] | None) -> None: method reply (line 197) | async def reply(self, *args: Any, **kwargs: Any) -> Msg: method print (line 205) | async def print( method _process_audio_block (line 276) | def _process_audio_block( method _print_text_block (line 369) | def _print_text_block( method _print_last_block (line 409) | def _print_last_block( method __call__ (line 448) | async def __call__(self, *args: Any, **kwargs: Any) -> Msg: method _broadcast_to_subscribers (line 469) | async def _broadcast_to_subscribers( method handle_interrupt (line 478) | async def handle_interrupt( method interrupt (line 490) | async def interrupt(self, msg: Msg | list[Msg] | None = None) -> None: method register_instance_hook (line 495) | def register_instance_hook( method remove_instance_hook (line 523) | def remove_instance_hook( method register_class_hook (line 553) | def register_class_hook( method remove_class_hook (line 581) | def remove_class_hook( method clear_class_hooks (line 610) | def clear_class_hooks( method clear_instance_hooks (line 633) | def clear_instance_hooks( method reset_subscribers (line 663) | def reset_subscribers( method remove_subscribers (line 679) | def remove_subscribers(self, msghub_name: str) -> None: method disable_console_output (line 695) | def disable_console_output(self) -> None: method set_console_output_enabled (line 700) | def set_console_output_enabled(self, enabled: bool) -> None: method set_msg_queue_enabled (line 712) | def set_msg_queue_enabled( FILE: src/agentscope/agent/_agent_meta.py function _normalize_to_kwargs (line 21) | def _normalize_to_kwargs( function _wrap_with_hooks (line 55) | def _wrap_with_hooks( class _AgentMeta (line 147) | class _AgentMeta(type): method __new__ (line 151) | def __new__(mcs, name: Any, bases: Any, attrs: Dict) -> Any: class _ReActAgentMeta (line 165) | class _ReActAgentMeta(_AgentMeta): method __new__ (line 169) | def __new__(mcs, name: Any, bases: Any, attrs: Dict) -> Any: FILE: src/agentscope/agent/_react_agent.py class _QueryRewriteModel (line 33) | class _QueryRewriteModel(BaseModel): class SummarySchema (line 43) | class SummarySchema(BaseModel): class _MemoryMark (line 88) | class _MemoryMark(str, Enum): class ReActAgent (line 98) | class ReActAgent(ReActAgentBase): class CompressionConfig (line 107) | class CompressionConfig(BaseModel): method __init__ (line 177) | def __init__( method sys_prompt (line 367) | def sys_prompt(self) -> str: method reply (line 376) | async def reply( # pylint: disable=too-many-branches method _reasoning (line 540) | async def _reasoning( method _acting (line 655) | async def _acting(self, tool_call: ToolUseBlock) -> dict | None: method observe (line 714) | async def observe(self, msg: Msg | list[Msg] | None) -> None: method _summarizing (line 723) | async def _summarizing(self) -> Msg: method handle_interrupt (line 795) | async def handle_interrupt( method generate_response (line 825) | def generate_response( method _retrieve_from_long_term_memory (line 878) | async def _retrieve_from_long_term_memory( method _retrieve_from_knowledge (line 904) | async def _retrieve_from_knowledge( method _compress_memory_if_needed (line 1011) | async def _compress_memory_if_needed(self) -> None: FILE: src/agentscope/agent/_react_agent_base.py class ReActAgentBase (line 12) | class ReActAgentBase(AgentBase, metaclass=_ReActAgentMeta): method __init__ (line 92) | def __init__( method _reasoning (line 105) | async def _reasoning( method _acting (line 114) | async def _acting(self, *args: Any, **kwargs: Any) -> Any: FILE: src/agentscope/agent/_realtime_agent.py class RealtimeAgent (line 28) | class RealtimeAgent(StateModule): method __init__ (line 65) | def __init__( method start (line 102) | async def start(self, outgoing_queue: Queue) -> None: method stop (line 126) | async def stop(self) -> None: method _forward_loop (line 134) | async def _forward_loop(self) -> None: method _model_response_loop (line 223) | async def _model_response_loop(self, outgoing_queue: Queue) -> None: method handle_input (line 307) | async def handle_input( method _acting (line 319) | async def _acting( FILE: src/agentscope/agent/_user_agent.py class UserAgent (line 12) | class UserAgent(AgentBase): method __init__ (line 21) | def __init__( method reply (line 30) | async def reply( method override_instance_input_method (line 78) | def override_instance_input_method( method override_class_input_method (line 97) | def override_class_input_method( method handle_interrupt (line 115) | async def handle_interrupt( method observe (line 127) | async def observe(self, msg: Msg | list[Msg] | None) -> None: FILE: src/agentscope/agent/_user_input.py class UserInputData (line 29) | class UserInputData: class UserInputBase (line 39) | class UserInputBase: method __call__ (line 43) | async def __call__( class TerminalUserInput (line 68) | class TerminalUserInput(UserInputBase): method __init__ (line 71) | def __init__(self, input_hint: str = "User Input: ") -> None: method __call__ (line 75) | async def __call__( class StudioUserInput (line 154) | class StudioUserInput(UserInputBase): method __init__ (line 159) | def __init__( method _ensure_connected (line 286) | def _ensure_connected( method __call__ (line 336) | async def __call__( # type: ignore[override] method __del__ (line 406) | def __del__(self) -> None: FILE: src/agentscope/agent/_utils.py class _AsyncNullContext (line 6) | class _AsyncNullContext: method __aenter__ (line 9) | async def __aenter__(self) -> None: method __aexit__ (line 12) | async def __aexit__( FILE: src/agentscope/embedding/_cache_base.py class EmbeddingCacheBase (line 12) | class EmbeddingCacheBase: method store (line 17) | async def store( method retrieve (line 37) | async def retrieve( method remove (line 50) | async def remove( method clear (line 62) | async def clear(self) -> None: FILE: src/agentscope/embedding/_dashscope_embedding.py class DashScopeTextEmbedding (line 14) | class DashScopeTextEmbedding(EmbeddingModelBase): method __init__ (line 31) | def __init__( method _call_api (line 60) | async def _call_api(self, kwargs: dict[str, Any]) -> EmbeddingResponse: method __call__ (line 107) | async def __call__( FILE: src/agentscope/embedding/_dashscope_multimodal_embedding.py class DashScopeMultiModalEmbedding (line 17) | class DashScopeMultiModalEmbedding(EmbeddingModelBase): method __init__ (line 24) | def __init__( method __call__ (line 91) | async def __call__( method _call_api (line 198) | async def _call_api(self, kwargs: dict[str, Any]) -> EmbeddingResponse: FILE: src/agentscope/embedding/_embedding_base.py class EmbeddingModelBase (line 8) | class EmbeddingModelBase: method __init__ (line 20) | def __init__( method __call__ (line 36) | async def __call__( FILE: src/agentscope/embedding/_embedding_response.py class EmbeddingResponse (line 13) | class EmbeddingResponse(DictMixin): FILE: src/agentscope/embedding/_embedding_usage.py class EmbeddingUsage (line 10) | class EmbeddingUsage(DictMixin): FILE: src/agentscope/embedding/_file_cache.py class FileEmbeddingCache (line 19) | class FileEmbeddingCache(EmbeddingCacheBase): method __init__ (line 23) | def __init__( method cache_dir (line 47) | def cache_dir(self) -> str: method store (line 53) | async def store( method retrieve (line 89) | async def retrieve( method remove (line 109) | async def remove(self, identifier: JSONSerializableObject) -> None: method clear (line 126) | async def clear(self) -> None: method _get_cache_size (line 132) | def _get_cache_size(self) -> float: method _get_filename (line 143) | def _get_filename(identifier: JSONSerializableObject) -> str: method _maintain_cache_dir (line 148) | async def _maintain_cache_dir(self) -> None: FILE: src/agentscope/embedding/_gemini_embedding.py class GeminiTextEmbedding (line 13) | class GeminiTextEmbedding(EmbeddingModelBase): method __init__ (line 19) | def __init__( method __call__ (line 50) | async def __call__( FILE: src/agentscope/embedding/_ollama_embedding.py class OllamaTextEmbedding (line 13) | class OllamaTextEmbedding(EmbeddingModelBase): method __init__ (line 19) | def __init__( method __call__ (line 48) | async def __call__( FILE: src/agentscope/embedding/_openai_embedding.py class OpenAITextEmbedding (line 13) | class OpenAITextEmbedding(EmbeddingModelBase): method __init__ (line 19) | def __init__( method __call__ (line 49) | async def __call__( FILE: src/agentscope/evaluate/_ace_benchmark/_ace_benchmark.py class ACEBenchmark (line 19) | class ACEBenchmark(BenchmarkBase): method __init__ (line 58) | def __init__( method _load_data (line 87) | def _load_data(self) -> list[dict]: method _verify_data (line 130) | def _verify_data(self) -> bool: method _download_data (line 149) | def _download_data(self) -> None: method _data_to_task (line 176) | def _data_to_task(item: dict) -> Task: method __iter__ (line 229) | def __iter__(self) -> Generator[Task, None, None]: method __getitem__ (line 234) | def __getitem__(self, index: int) -> Task: method __len__ (line 238) | def __len__(self) -> int: FILE: src/agentscope/evaluate/_ace_benchmark/_ace_metric.py class ACEProcessAccuracy (line 8) | class ACEProcessAccuracy(MetricBase): method __init__ (line 11) | def __init__( method __call__ (line 23) | async def __call__( class ACEAccuracy (line 70) | class ACEAccuracy(MetricBase): method __init__ (line 73) | def __init__( method __call__ (line 85) | async def __call__( FILE: src/agentscope/evaluate/_ace_benchmark/_ace_tools_api/_food_platform_api.py class FoodPlatformApi (line 7) | class FoodPlatformApi(SharedState): method __init__ (line 20) | def __init__(self, shared_state: dict) -> None: method get_state_dict (line 114) | def get_state_dict(self) -> dict: method login_food_platform (line 124) | def login_food_platform( method view_logged_in_users (line 152) | def view_logged_in_users(self) -> dict: method check_balance (line 162) | def check_balance(self, user_name: str) -> float: method add_food_delivery_order (line 174) | def add_food_delivery_order( method get_products (line 251) | def get_products( method view_orders (line 270) | def view_orders( method search_orders (line 284) | def search_orders( FILE: src/agentscope/evaluate/_ace_benchmark/_ace_tools_api/_message_api.py class MessageApi (line 8) | class MessageApi(SharedState): method __init__ (line 21) | def __init__(self, share_state: dict) -> None: method get_state_dict (line 105) | def get_state_dict(self) -> dict: method send_message (line 119) | def send_message( method delete_message (line 167) | def delete_message(self, message_id: int) -> dict[str, bool | str]: method view_messages_between_users (line 182) | def view_messages_between_users( method search_messages (line 231) | def search_messages( method get_all_message_times_with_ids (line 270) | def get_all_message_times_with_ids( method get_latest_message_id (line 284) | def get_latest_message_id(self) -> dict: method get_earliest_message_id (line 313) | def get_earliest_message_id(self) -> dict: FILE: src/agentscope/evaluate/_ace_benchmark/_ace_tools_api/_reminder_api.py class ReminderApi (line 8) | class ReminderApi(SharedState): method __init__ (line 20) | def __init__(self, share_state: dict) -> None: method get_state_dict (line 56) | def get_state_dict(self) -> dict: method _check_capacity (line 64) | def _check_capacity(self) -> bool: method view_reminder_by_title (line 68) | def view_reminder_by_title( method add_reminder (line 89) | def add_reminder( method delete_reminder (line 124) | def delete_reminder(self, reminder_id: int) -> dict[str, bool | str]: method view_all_reminders (line 141) | def view_all_reminders( method mark_as_notified (line 165) | def mark_as_notified( method search_reminders (line 183) | def search_reminders( FILE: src/agentscope/evaluate/_ace_benchmark/_ace_tools_api/_shared_state.py class SharedState (line 5) | class SharedState: method __init__ (line 8) | def __init__(self, shared_state: dict) -> None: method wifi (line 13) | def wifi(self) -> bool: method logged_in (line 18) | def logged_in(self) -> bool: FILE: src/agentscope/evaluate/_ace_benchmark/_ace_tools_api/_travel_api.py class TravelApi (line 13) | class TravelApi: method __init__ (line 29) | def __init__(self) -> None: method get_state_dict (line 228) | def get_state_dict(self) -> dict: method get_flight_details (line 239) | def get_flight_details( method get_user_details (line 286) | def get_user_details(self, user_id: str, password: str) -> dict: method get_reservation_details (line 303) | def get_reservation_details( method authenticate_user (line 350) | def authenticate_user(self, user_id: str, password: str) -> dict: method get_baggage_allowance (line 366) | def get_baggage_allowance( method find_transfer_flights (line 387) | def find_transfer_flights( method calculate_baggage_fee (line 455) | def calculate_baggage_fee( method update_balance (line 480) | def update_balance( method reserve_flight (line 506) | def reserve_flight( method modify_flight (line 587) | def modify_flight( method cancel_reservation (line 714) | def cancel_reservation( method process_refund (line 802) | def process_refund(self, user: dict, amount: float) -> str: method calculate_price_difference (line 812) | def calculate_price_difference( FILE: src/agentscope/evaluate/_ace_benchmark/_ace_tools_zh.py function _tool_function_wrapper (line 16) | def _tool_function_wrapper(get_tool_function: Callable) -> Callable: class ACEPhone (line 42) | class ACEPhone: method __init__ (line 48) | def __init__(self) -> None: method turn_on_wifi (line 59) | def turn_on_wifi(self) -> dict[str, bool | str]: method login_device (line 64) | def login_device(self) -> dict[str, bool | str]: method load_initial_config (line 69) | def load_initial_config(self, initial_config: dict) -> None: method get_current_state (line 89) | def get_current_state(self) -> list[dict]: method get_tool_function (line 100) | def get_tool_function(self, name: str) -> Callable: FILE: src/agentscope/evaluate/_benchmark_base.py class BenchmarkBase (line 9) | class BenchmarkBase(ABC): method __init__ (line 18) | def __init__(self, name: str, description: str) -> None: method __iter__ (line 31) | def __iter__(self) -> Generator[Task, None, None]: method __len__ (line 36) | def __len__(self) -> int: method __getitem__ (line 41) | def __getitem__(self, index: int) -> Task: FILE: src/agentscope/evaluate/_evaluator/_evaluator_base.py class EvaluatorBase (line 18) | class EvaluatorBase: method __init__ (line 21) | def __init__( method run (line 49) | async def run( method _save_evaluation_meta (line 65) | async def _save_evaluation_meta(self) -> None: method _save_task_meta (line 81) | async def _save_task_meta(self, task: Task) -> None: method aggregate (line 96) | async def aggregate(self) -> None: FILE: src/agentscope/evaluate/_evaluator/_general_evaluator.py class GeneralEvaluator (line 14) | class GeneralEvaluator(EvaluatorBase): method __init__ (line 17) | def __init__( method run_evaluation (line 43) | async def run_evaluation( method run_solution (line 59) | async def run_solution( method run (line 124) | async def run( FILE: src/agentscope/evaluate/_evaluator/_in_memory_exporter.py class _InMemoryExporter (line 14) | class _InMemoryExporter(SpanExporter): method __init__ (line 18) | def __init__(self) -> None: method export (line 24) | def export(self, spans: Sequence[ReadableSpan]) -> SpanExportResult: method shutdown (line 104) | def shutdown(self) -> None: FILE: src/agentscope/evaluate/_evaluator/_ray_evaluator.py function _check_ray_available (line 14) | def _check_ray_available() -> None: function _ray_remote_decorator (line 26) | def _ray_remote_decorator(cls: Any) -> Any: class RayEvaluationActor (line 39) | class RayEvaluationActor: method run (line 45) | async def run( class RaySolutionActor (line 71) | class RaySolutionActor: method __init__ (line 76) | def __init__(self, n_workers: int = 1): method run (line 96) | async def run( class RayEvaluator (line 189) | class RayEvaluator(EvaluatorBase): method __init__ (line 193) | def __init__( method run (line 222) | async def run( FILE: src/agentscope/evaluate/_evaluator_storage/_evaluator_storage_base.py class EvaluatorStorageBase (line 13) | class EvaluatorStorageBase: method save_solution_result (line 18) | def save_solution_result( method get_evaluation_result (line 38) | def get_evaluation_result( method save_evaluation_result (line 61) | def save_evaluation_result( method get_solution_result (line 81) | def get_solution_result( method solution_result_exists (line 102) | def solution_result_exists(self, task_id: str, repeat_id: str) -> bool: method evaluation_result_exists (line 118) | def evaluation_result_exists( method save_aggregation_result (line 142) | def save_aggregation_result( method aggregation_result_exists (line 155) | def aggregation_result_exists( method save_evaluation_meta (line 167) | def save_evaluation_meta(self, meta_info: dict) -> None: method save_task_meta (line 176) | def save_task_meta( method save_solution_stats (line 192) | def save_solution_stats( method get_solution_stats (line 212) | def get_solution_stats( method get_agent_pre_print_hook (line 234) | def get_agent_pre_print_hook( FILE: src/agentscope/evaluate/_evaluator_storage/_file_evaluator_storage.py class FileEvaluatorStorage (line 16) | class FileEvaluatorStorage(EvaluatorStorageBase): method __init__ (line 40) | def __init__(self, save_dir: str) -> None: method _get_save_path (line 44) | def _get_save_path( method save_solution_result (line 72) | def save_solution_result( method save_evaluation_result (line 98) | def save_evaluation_result( method get_evaluation_result (line 125) | def get_evaluation_result( method get_solution_result (line 158) | def get_solution_result( method solution_result_exists (line 206) | def solution_result_exists(self, task_id: str, repeat_id: str) -> bool: method evaluation_result_exists (line 228) | def evaluation_result_exists( method save_aggregation_result (line 258) | def save_aggregation_result( method aggregation_result_exists (line 277) | def aggregation_result_exists( method save_evaluation_meta (line 293) | def save_evaluation_meta(self, meta_info: dict) -> None: method save_task_meta (line 308) | def save_task_meta( method save_solution_stats (line 330) | def save_solution_stats( method get_solution_stats (line 357) | def get_solution_stats( method get_agent_pre_print_hook (line 399) | def get_agent_pre_print_hook( FILE: src/agentscope/evaluate/_metric_base.py class MetricResult (line 15) | class MetricResult(DictMixin): class MetricType (line 36) | class MetricType(str, Enum): class MetricBase (line 47) | class MetricBase(ABC): method __init__ (line 63) | def __init__( method __call__ (line 96) | async def __call__( FILE: src/agentscope/evaluate/_solution.py class SolutionOutput (line 17) | class SolutionOutput(DictMixin): method __getstate__ (line 30) | def __getstate__(self) -> dict[str, Any]: method __setstate__ (line 34) | def __setstate__(self, state: dict[str, Any]) -> None: FILE: src/agentscope/evaluate/_task.py class Task (line 12) | class Task: method evaluate (line 38) | async def evaluate(self, solution: SolutionOutput) -> list[MetricResult]: FILE: src/agentscope/exception/_exception_base.py class AgentOrientedExceptionBase (line 5) | class AgentOrientedExceptionBase(Exception): method __init__ (line 11) | def __init__(self, message: str): method __str__ (line 16) | def __str__(self) -> str: FILE: src/agentscope/exception/_tool.py class ToolNotFoundError (line 7) | class ToolNotFoundError(AgentOrientedExceptionBase): class ToolInterruptedError (line 11) | class ToolInterruptedError(AgentOrientedExceptionBase): class ToolInvalidArgumentsError (line 15) | class ToolInvalidArgumentsError(AgentOrientedExceptionBase): FILE: src/agentscope/formatter/_a2a_formatter.py class A2AChatFormatter (line 31) | class A2AChatFormatter(FormatterBase): method format (line 35) | async def format(self, msgs: list[Msg]) -> Message: method format_a2a_message (line 147) | async def format_a2a_message(self, name: str, message: Message) -> Msg: method _guess_type (line 187) | def _guess_type( method format_a2a_task (line 224) | async def format_a2a_task(self, name: str, task: Task) -> list[Msg]: method _format_a2a_part (line 273) | async def _format_a2a_part(self, part: Part) -> ContentBlock: FILE: src/agentscope/formatter/_anthropic_formatter.py class AnthropicChatFormatter (line 13) | class AnthropicChatFormatter(TruncatedFormatterBase): method _format (line 38) | async def _format( class AnthropicMultiAgentFormatter (line 123) | class AnthropicMultiAgentFormatter(TruncatedFormatterBase): method __init__ (line 148) | def __init__( method _format_tool_sequence (line 167) | async def _format_tool_sequence( method _format_agent_message (line 175) | async def _format_agent_message( FILE: src/agentscope/formatter/_dashscope_formatter.py function _format_dashscope_media_block (line 25) | def _format_dashscope_media_block( function _reformat_messages (line 67) | def _reformat_messages( class DashScopeChatFormatter (line 147) | class DashScopeChatFormatter(TruncatedFormatterBase): method __init__ (line 189) | def __init__( method _format (line 232) | async def _format( class DashScopeMultiAgentFormatter (line 413) | class DashScopeMultiAgentFormatter(TruncatedFormatterBase): method __init__ (line 453) | def __init__( method _format_tool_sequence (line 501) | async def _format_tool_sequence( method _format_agent_message (line 522) | async def _format_agent_message( method _format_system_message (line 631) | async def _format_system_message( FILE: src/agentscope/formatter/_deepseek_formatter.py class DeepSeekChatFormatter (line 13) | class DeepSeekChatFormatter(TruncatedFormatterBase): method _format (line 36) | async def _format( class DeepSeekMultiAgentFormatter (line 123) | class DeepSeekMultiAgentFormatter(TruncatedFormatterBase): method __init__ (line 146) | def __init__( method _format_tool_sequence (line 173) | async def _format_tool_sequence( method _format_agent_message (line 190) | async def _format_agent_message( FILE: src/agentscope/formatter/_formatter_base.py class FormatterBase (line 11) | class FormatterBase: method format (line 15) | async def format(self, *args: Any, **kwargs: Any) -> list[dict[str, An... method assert_list_of_msgs (line 20) | def assert_list_of_msgs(msgs: list[Msg]) -> None: method convert_tool_result_to_string (line 37) | def convert_tool_result_to_string( FILE: src/agentscope/formatter/_gemini_formatter.py function _format_gemini_media_block (line 25) | def _format_gemini_media_block( function _to_gemini_inline_data (line 60) | def _to_gemini_inline_data(url: str) -> dict: class GeminiChatFormatter (line 107) | class GeminiChatFormatter(TruncatedFormatterBase): method __init__ (line 150) | def __init__( method _format (line 177) | async def _format( class GeminiMultiAgentFormatter (line 312) | class GeminiMultiAgentFormatter(TruncatedFormatterBase): method __init__ (line 352) | def __init__( method _format_system_message (line 384) | async def _format_system_message( method _format_tool_sequence (line 398) | async def _format_tool_sequence( method _format_agent_message (line 417) | async def _format_agent_message( FILE: src/agentscope/formatter/_ollama_formatter.py function _format_ollama_image_block (line 23) | def _format_ollama_image_block( function _convert_ollama_image_url_to_base64_data (line 51) | def _convert_ollama_image_url_to_base64_data(url: str) -> str: class OllamaChatFormatter (line 71) | class OllamaChatFormatter(TruncatedFormatterBase): method __init__ (line 96) | def __init__( method _format (line 123) | async def _format( class OllamaMultiAgentFormatter (line 266) | class OllamaMultiAgentFormatter(TruncatedFormatterBase): method __init__ (line 291) | def __init__( method _format_system_message (line 323) | async def _format_system_message( method _format_tool_sequence (line 333) | async def _format_tool_sequence( method _format_agent_message (line 352) | async def _format_agent_message( FILE: src/agentscope/formatter/_openai_formatter.py function _format_openai_image_block (line 27) | def _format_openai_image_block( function _to_openai_image_url (line 64) | def _to_openai_image_url(url: str) -> str: function _to_openai_audio_data (line 105) | def _to_openai_audio_data(source: URLSource | Base64Source) -> dict: class OpenAIChatFormatter (line 156) | class OpenAIChatFormatter(TruncatedFormatterBase): method __init__ (line 180) | def __init__( method _format (line 207) | async def _format( class OpenAIMultiAgentFormatter (line 362) | class OpenAIMultiAgentFormatter(TruncatedFormatterBase): method __init__ (line 388) | def __init__( method _format_tool_sequence (line 423) | async def _format_tool_sequence( method _format_agent_message (line 433) | async def _format_agent_message( FILE: src/agentscope/formatter/_truncated_formatter_base.py class TruncatedFormatterBase (line 19) | class TruncatedFormatterBase(FormatterBase, ABC): method __init__ (line 23) | def __init__( method format (line 48) | async def format( method _format (line 85) | async def _format(self, msgs: list[Msg]) -> list[dict[str, Any]]: method _format_system_message (line 115) | async def _format_system_message( method _format_tool_sequence (line 130) | async def _format_tool_sequence( method _format_agent_message (line 140) | async def _format_agent_message( method _truncate (line 151) | async def _truncate(self, msgs: list[Msg]) -> list[Msg]: method _count (line 217) | async def _count(self, msgs: list[dict[str, Any]]) -> int | None: method _group_messages (line 231) | async def _group_messages( FILE: src/agentscope/hooks/__init__.py function _equip_as_studio_hooks (line 17) | def _equip_as_studio_hooks( FILE: src/agentscope/hooks/_studio_hooks.py function as_studio_forward_message_pre_print_hook (line 12) | def as_studio_forward_message_pre_print_hook( FILE: src/agentscope/mcp/_client_base.py class MCPClientBase (line 18) | class MCPClientBase: method __init__ (line 21) | def __init__(self, name: str) -> None: method get_callable_function (line 32) | async def get_callable_function( method _convert_mcp_content_to_as_blocks (line 40) | def _convert_mcp_content_to_as_blocks( FILE: src/agentscope/mcp/_http_stateful_client.py class HttpStatefulClient (line 11) | class HttpStatefulClient(StatefulClientBase): method __init__ (line 31) | def __init__( FILE: src/agentscope/mcp/_http_stateless_client.py class HttpStatelessClient (line 16) | class HttpStatelessClient(MCPClientBase): method __init__ (line 30) | def __init__( method get_client (line 79) | def get_client(self) -> _AsyncGeneratorContextManager[Any]: method get_callable_function (line 92) | async def get_callable_function( method list_tools (line 139) | async def list_tools(self) -> List[mcp.types.Tool]: FILE: src/agentscope/mcp/_mcp_function.py class MCPToolFunction (line 15) | class MCPToolFunction: method __init__ (line 27) | def __init__( method __call__ (line 82) | async def __call__( FILE: src/agentscope/mcp/_stateful_client_base.py class StatefulClientBase (line 16) | class StatefulClientBase(MCPClientBase, ABC): method __init__ (line 27) | def __init__(self, name: str) -> None: method connect (line 46) | async def connect(self) -> None: method close (line 72) | async def close(self, ignore_errors: bool = True) -> None: method list_tools (line 97) | async def list_tools(self) -> List[mcp.types.Tool]: method get_callable_function (line 112) | async def get_callable_function( method _validate_connection (line 164) | def _validate_connection(self) -> None: FILE: src/agentscope/mcp/_stdio_stateful_client.py class StdIOStatefulClient (line 11) | class StdIOStatefulClient(StatefulClientBase): method __init__ (line 31) | def __init__( FILE: src/agentscope/memory/_long_term_memory/_long_term_memory_base.py class LongTermMemoryBase (line 11) | class LongTermMemoryBase(StateModule): method record (line 24) | async def record( method retrieve (line 35) | async def retrieve( method record_to_memory (line 48) | async def record_to_memory( method retrieve_from_memory (line 69) | async def retrieve_from_memory( FILE: src/agentscope/memory/_long_term_memory/_mem0/_mem0_long_term_memory.py function _create_agentscope_config_classes (line 30) | def _create_agentscope_config_classes() -> tuple: class Mem0LongTermMemory (line 72) | class Mem0LongTermMemory(LongTermMemoryBase): method _setup_mem0_logging (line 76) | def _setup_mem0_logging(suppress_mem0_logging: bool) -> None: method _register_agentscope_providers (line 92) | def _register_agentscope_providers() -> None: method _validate_identifiers (line 135) | def _validate_identifiers( method _configure_mem0_config (line 161) | def _configure_mem0_config( method __init__ (line 263) | def __init__( method record_to_memory (line 380) | async def record_to_memory( method retrieve_from_memory (line 507) | async def retrieve_from_memory( method record (line 573) | async def record( method _format_relations (line 620) | def _format_relations(self, result: dict) -> list: method _mem0_record (line 642) | async def _mem0_record( method retrieve (line 683) | async def retrieve( FILE: src/agentscope/memory/_long_term_memory/_mem0/_mem0_utils.py class _EventLoopManager (line 21) | class _EventLoopManager: method __init__ (line 32) | def __init__(self) -> None: method get_loop (line 42) | def get_loop(self) -> asyncio.AbstractEventLoop: method cleanup (line 88) | def cleanup(self) -> None: function _run_async_in_persistent_loop (line 109) | def _run_async_in_persistent_loop(coro: Coroutine) -> Any: class AgentScopeLLM (line 133) | class AgentScopeLLM(LLMBase): method __init__ (line 140) | def __init__(self, config: BaseLlmConfig | None = None): method _parse_response (line 157) | def _parse_response( method generate_response (line 208) | def generate_response( class AgentScopeEmbedding (line 284) | class AgentScopeEmbedding(EmbeddingBase): method __init__ (line 291) | def __init__(self, config: BaseEmbedderConfig | None = None): method embed (line 310) | def embed( FILE: src/agentscope/memory/_long_term_memory/_reme/_reme_long_term_memory_base.py class ReMeLongTermMemoryBase (line 77) | class ReMeLongTermMemoryBase(LongTermMemoryBase, metaclass=ABCMeta): method __init__ (line 94) | def __init__( method __aenter__ (line 287) | async def __aenter__(self) -> "ReMeLongTermMemoryBase": method __aexit__ (line 321) | async def __aexit__( FILE: src/agentscope/memory/_long_term_memory/_reme/_reme_personal_long_term_memory.py class ReMePersonalLongTermMemory (line 17) | class ReMePersonalLongTermMemory(ReMeLongTermMemoryBase): method record_to_memory (line 20) | async def record_to_memory( method retrieve_from_memory (line 155) | async def retrieve_from_memory( method record (line 253) | async def record( method retrieve (line 332) | async def retrieve( FILE: src/agentscope/memory/_long_term_memory/_reme/_reme_task_long_term_memory.py class ReMeTaskLongTermMemory (line 17) | class ReMeTaskLongTermMemory(ReMeLongTermMemoryBase): method record_to_memory (line 25) | async def record_to_memory( method retrieve_from_memory (line 156) | async def retrieve_from_memory( method record (line 266) | async def record( method retrieve (line 356) | async def retrieve( FILE: src/agentscope/memory/_long_term_memory/_reme/_reme_tool_long_term_memory.py class ReMeToolLongTermMemory (line 17) | class ReMeToolLongTermMemory(ReMeLongTermMemoryBase): method record_to_memory (line 25) | async def record_to_memory( method retrieve_from_memory (line 175) | async def retrieve_from_memory( method _extract_content_from_messages (line 279) | def _extract_content_from_messages(self, msg_list: list[Msg]) -> list[... method _extract_text_from_blocks (line 300) | def _extract_text_from_blocks(self, blocks: list) -> list[str]: method _parse_tool_call_results (line 319) | def _parse_tool_call_results( method record (line 353) | async def record( method _extract_tool_names_from_message (line 434) | def _extract_tool_names_from_message(self, msg: Msg) -> str: method _format_retrieve_result (line 457) | def _format_retrieve_result(self, result: Any) -> str: method retrieve (line 474) | async def retrieve( FILE: src/agentscope/memory/_working_memory/_base.py class MemoryBase (line 11) | class MemoryBase(StateModule): method __init__ (line 14) | def __init__(self) -> None: method update_compressed_summary (line 22) | async def update_compressed_summary(self, summary: str) -> None: method add (line 32) | async def add( method delete (line 50) | async def delete( method delete_by_mark (line 66) | async def delete_by_mark( method size (line 92) | async def size(self) -> int: method clear (line 101) | async def clear(self) -> None: method get_memory (line 105) | async def get_memory( method update_messages_mark (line 134) | async def update_messages_mark( FILE: src/agentscope/memory/_working_memory/_in_memory_memory.py class InMemoryMemory (line 10) | class InMemoryMemory(MemoryBase): method __init__ (line 13) | def __init__(self) -> None: method get_memory (line 22) | async def get_memory( method add (line 93) | async def add( method delete (line 137) | async def delete( method delete_by_mark (line 160) | async def delete_by_mark( method clear (line 199) | async def clear(self) -> None: method size (line 203) | async def size(self) -> int: method update_messages_mark (line 212) | async def update_messages_mark( method state_dict (line 273) | def state_dict(self) -> dict: method load_state_dict (line 280) | def load_state_dict(self, state_dict: dict, strict: bool = True) -> None: FILE: src/agentscope/memory/_working_memory/_redis_memory.py class RedisMemory (line 16) | class RedisMemory(MemoryBase): method __init__ (line 65) | def __init__( method get_client (line 136) | def get_client(self) -> Redis: method _decode_if_bytes (line 145) | def _decode_if_bytes(self, data: Any) -> Any: method _decode_list (line 161) | def _decode_list(self, data_list: list) -> list: method _get_session_key (line 174) | def _get_session_key(self) -> str: method _get_session_pattern (line 186) | def _get_session_pattern(self) -> str: method _get_mark_key (line 198) | def _get_mark_key(self, mark: str) -> str: method _get_mark_pattern (line 215) | def _get_mark_pattern(self) -> str: method _get_marks_index_key (line 228) | def _get_marks_index_key(self) -> str: method _extract_mark_from_key (line 240) | def _extract_mark_from_key(self, mark_key: str) -> str: method _get_message_key (line 260) | def _get_message_key(self, msg_id: str) -> str: method _refresh_session_ttl (line 277) | async def _refresh_session_ttl( method _scan_and_migrate_marks (line 315) | async def _scan_and_migrate_marks(self) -> list[str]: method _get_all_mark_keys (line 349) | async def _get_all_mark_keys(self) -> list[str]: method get_memory (line 379) | async def get_memory( method add (line 471) | async def add( method delete (line 556) | async def delete( method delete_by_mark (line 608) | async def delete_by_mark( method clear (line 653) | async def clear(self) -> None: method size (line 679) | async def size(self) -> int: method update_messages_mark (line 690) | async def update_messages_mark( method close (line 790) | async def close(self, close_connection_pool: bool | None = None) -> None: method __aenter__ (line 802) | async def __aenter__(self) -> "RedisMemory": method __aexit__ (line 811) | async def __aexit__( FILE: src/agentscope/memory/_working_memory/_sqlalchemy_memory.py class AsyncSQLAlchemyMemory (line 30) | class AsyncSQLAlchemyMemory(MemoryBase): class MessageTable (line 42) | class MessageTable(Base): class MessageMarkTable (line 72) | class MessageMarkTable(Base): class SessionTable (line 88) | class SessionTable(Base): class UserTable (line 106) | class UserTable(Base): method __init__ (line 118) | def __init__( method _make_message_id (line 170) | def _make_message_id(self, msg_id: str) -> str: method session (line 185) | def session(self) -> AsyncSession: method _create_table (line 210) | async def _create_table(self) -> None: method get_memory (line 263) | async def get_memory( method add (line 365) | async def add( method _get_next_index (line 491) | async def _get_next_index(self) -> int: method size (line 507) | async def size(self) -> int: method clear (line 516) | async def clear(self) -> None: method delete_by_mark (line 538) | async def delete_by_mark( method delete (line 596) | async def delete( method update_messages_mark (line 644) | async def update_messages_mark( method _replace_message_mark (line 747) | async def _replace_message_mark( method _add_message_mark (line 780) | async def _add_message_mark(self, msg_ids: list[str], mark: str) -> int: method _remove_message_mark (line 808) | async def _remove_message_mark( method close (line 840) | async def close(self) -> None: method __aenter__ (line 848) | async def __aenter__(self) -> "AsyncSQLAlchemyMemory": method __aexit__ (line 857) | async def __aexit__( FILE: src/agentscope/message/_message_base.py class Msg (line 21) | class Msg: method __init__ (line 24) | def __init__( method to_dict (line 75) | def to_dict(self) -> dict: method from_dict (line 87) | def from_dict(cls, json_data: dict) -> "Msg": method has_content_blocks (line 101) | def has_content_blocks( method get_text_content (line 123) | def get_text_content(self, separator: str = "\n") -> str | None: method get_content_blocks (line 150) | def get_content_blocks( method get_content_blocks (line 157) | def get_content_blocks( method get_content_blocks (line 164) | def get_content_blocks( method get_content_blocks (line 171) | def get_content_blocks( method get_content_blocks (line 178) | def get_content_blocks( method get_content_blocks (line 185) | def get_content_blocks( method get_content_blocks (line 192) | def get_content_blocks( method get_content_blocks (line 198) | def get_content_blocks( method __repr__ (line 231) | def __repr__(self) -> str: FILE: src/agentscope/message/_message_block.py class TextBlock (line 9) | class TextBlock(TypedDict, total=False): class ThinkingBlock (line 18) | class ThinkingBlock(TypedDict, total=False): class Base64Source (line 26) | class Base64Source(TypedDict, total=False): class URLSource (line 39) | class URLSource(TypedDict, total=False): class ImageBlock (line 49) | class ImageBlock(TypedDict, total=False): class AudioBlock (line 59) | class AudioBlock(TypedDict, total=False): class VideoBlock (line 69) | class VideoBlock(TypedDict, total=False): class ToolUseBlock (line 79) | class ToolUseBlock(TypedDict, total=False): class ToolResultBlock (line 94) | class ToolResultBlock(TypedDict, total=False): FILE: src/agentscope/model/_anthropic_model.py class AnthropicChatModel (line 40) | class AnthropicChatModel(ChatModelBase): method __init__ (line 43) | def __init__( method __call__ (line 137) | async def __call__( method _parse_anthropic_completion_response (line 275) | async def _parse_anthropic_completion_response( method _parse_anthropic_stream_completion_response (line 359) | async def _parse_anthropic_stream_completion_response( method _format_tools_json_schemas (line 534) | def _format_tools_json_schemas( method _format_tool_choice (line 561) | def _format_tool_choice( FILE: src/agentscope/model/_dashscope_model.py class DashScopeChatModel (line 50) | class DashScopeChatModel(ChatModelBase): method __init__ (line 72) | def __init__( method __call__ (line 162) | async def __call__( method _parse_dashscope_stream_response (line 300) | async def _parse_dashscope_stream_response( method _parse_dashscope_generation_response (line 482) | async def _parse_dashscope_generation_response( method _format_tools_json_schemas (line 585) | def _format_tools_json_schemas( method _format_tool_choice (line 610) | def _format_tool_choice( FILE: src/agentscope/model/_gemini_model.py function _flatten_json_schema (line 36) | def _flatten_json_schema(schema: dict) -> dict: class GeminiChatModel (line 115) | class GeminiChatModel(ChatModelBase): method __init__ (line 118) | def __init__( method __call__ (line 202) | async def __call__( method _extract_usage (line 306) | def _extract_usage( method _parse_gemini_stream_generation_response (line 336) | async def _parse_gemini_stream_generation_response( method _parse_gemini_generation_response (line 443) | def _parse_gemini_generation_response( method _format_tools_json_schemas (line 536) | def _format_tools_json_schemas( method _format_tool_choice (line 625) | def _format_tool_choice( FILE: src/agentscope/model/_model_base.py class ChatModelBase (line 13) | class ChatModelBase: method __init__ (line 22) | def __init__( method __call__ (line 39) | async def __call__( method _validate_tool_choice (line 46) | def _validate_tool_choice( FILE: src/agentscope/model/_model_response.py class ChatResponse (line 20) | class ChatResponse(DictMixin): FILE: src/agentscope/model/_model_usage.py class ChatUsage (line 10) | class ChatUsage(DictMixin): FILE: src/agentscope/model/_ollama_model.py class OllamaChatModel (line 33) | class OllamaChatModel(ChatModelBase): method __init__ (line 36) | def __init__( method __call__ (line 101) | async def __call__( method _parse_ollama_stream_completion_response (line 174) | async def _parse_ollama_stream_completion_response( method _parse_ollama_completion_response (line 274) | async def _parse_ollama_completion_response( method _format_tools_json_schemas (line 350) | def _format_tools_json_schemas( FILE: src/agentscope/model/_openai_model.py function _format_audio_data_for_qwen_omni (line 43) | def _format_audio_data_for_qwen_omni(messages: list[dict]) -> None: class OpenAIChatModel (line 68) | class OpenAIChatModel(ChatModelBase): method __init__ (line 71) | def __init__( method __call__ (line 172) | async def __call__( method _parse_openai_stream_response (line 308) | async def _parse_openai_stream_response( method _parse_openai_completion_response (line 516) | def _parse_openai_completion_response( method _format_tools_json_schemas (line 626) | def _format_tools_json_schemas( method _format_tool_choice (line 633) | def _format_tool_choice( FILE: src/agentscope/model/_trinity_model.py class TrinityChatModel (line 21) | class TrinityChatModel(OpenAIChatModel): method __init__ (line 24) | def __init__( FILE: src/agentscope/module/_state_module.py class _JSONSerializeFunction (line 13) | class _JSONSerializeFunction: class StateModule (line 20) | class StateModule: method __init__ (line 24) | def __init__(self) -> None: method __setattr__ (line 29) | def __setattr__(self, key: str, value: Any) -> None: method __delattr__ (line 41) | def __delattr__(self, key: str) -> None: method state_dict (line 49) | def state_dict(self) -> dict: method load_state_dict (line 74) | def load_state_dict(self, state_dict: dict, strict: bool = True) -> None: method register_state (line 108) | def register_state( FILE: src/agentscope/pipeline/_chat_room.py class ChatRoom (line 10) | class ChatRoom: method __init__ (line 15) | def __init__(self, agents: list[RealtimeAgent]) -> None: method start (line 30) | async def start(self, outgoing_queue: Queue) -> None: method _forward_loop (line 45) | async def _forward_loop(self, outgoing_queue: Queue) -> None: method stop (line 79) | async def stop(self) -> None: method handle_input (line 89) | async def handle_input(self, event: ClientEvents.EventBase) -> None: FILE: src/agentscope/pipeline/_class.py class SequentialPipeline (line 10) | class SequentialPipeline: method __init__ (line 15) | def __init__( method __call__ (line 27) | async def __call__( class FanoutPipeline (line 43) | class FanoutPipeline: method __init__ (line 48) | def __init__( method __call__ (line 66) | async def __call__( FILE: src/agentscope/pipeline/_functional.py function sequential_pipeline (line 10) | async def sequential_pipeline( function fanout_pipeline (line 47) | async def fanout_pipeline( function stream_printing_messages (line 107) | async def stream_printing_messages( FILE: src/agentscope/pipeline/_msghub.py class MsgHub (line 14) | class MsgHub: method __init__ (line 42) | def __init__( method __aenter__ (line 73) | async def __aenter__(self) -> "MsgHub": method __aexit__ (line 83) | async def __aexit__(self, *args: Any, **kwargs: Any) -> None: method _reset_subscriber (line 89) | def _reset_subscriber(self) -> None: method add (line 95) | def add( method delete (line 109) | def delete( method broadcast (line 130) | async def broadcast(self, msg: list[Msg] | Msg) -> None: method set_auto_broadcast (line 140) | def set_auto_broadcast(self, enable: bool) -> None: FILE: src/agentscope/plan/_in_memory_storage.py class InMemoryPlanStorage (line 9) | class InMemoryPlanStorage(PlanStorageBase): method __init__ (line 12) | def __init__(self) -> None: method add_plan (line 26) | async def add_plan(self, plan: Plan, override: bool = True) -> None: method delete_plan (line 41) | async def delete_plan(self, plan_id: str) -> None: method get_plans (line 50) | async def get_plans(self) -> list[Plan]: method get_plan (line 59) | async def get_plan(self, plan_id: str) -> Plan | None: FILE: src/agentscope/plan/_plan_model.py class SubTask (line 11) | class SubTask(BaseModel): method finish (line 52) | def finish(self, outcome: str) -> None: method to_oneline_markdown (line 58) | def to_oneline_markdown(self) -> str: method to_markdown (line 68) | def to_markdown(self, detailed: bool = False) -> str: class Plan (line 104) | class Plan(BaseModel): method refresh_plan_state (line 148) | def refresh_plan_state(self) -> str: method finish (line 169) | def finish( method to_markdown (line 179) | def to_markdown(self, detailed: bool = False) -> str: FILE: src/agentscope/plan/_plan_notebook.py class DefaultPlanToHint (line 16) | class DefaultPlanToHint: method __call__ (line 101) | def __call__(self, plan: Plan | None) -> str | None: class PlanNotebook (line 172) | class PlanNotebook(StateModule): method __init__ (line 195) | def __init__( method create_plan (line 232) | async def create_plan( method _validate_current_plan (line 295) | def _validate_current_plan(self) -> None: method revise_current_plan (line 303) | async def revise_current_plan( method update_subtask_state (line 433) | async def update_subtask_state( method finish_subtask (line 548) | async def finish_subtask( method view_subtasks (line 653) | async def view_subtasks(self, subtask_idx: list[int]) -> ToolResponse: method finish_plan (line 694) | async def finish_plan( method view_historical_plans (line 739) | async def view_historical_plans(self) -> ToolResponse: method recover_historical_plan (line 762) | async def recover_historical_plan(self, plan_id: str) -> ToolResponse: method list_tools (line 821) | def list_tools( method get_current_hint (line 845) | async def get_current_hint(self) -> Msg | None: method register_plan_change_hook (line 866) | def register_plan_change_hook( method remove_plan_change_hook (line 885) | def remove_plan_change_hook(self, hook_name: str) -> None: method _trigger_plan_change_hooks (line 897) | async def _trigger_plan_change_hooks(self) -> None: FILE: src/agentscope/plan/_storage_base.py class PlanStorageBase (line 9) | class PlanStorageBase(StateModule): method add_plan (line 13) | async def add_plan(self, plan: Plan) -> None: method delete_plan (line 17) | async def delete_plan(self, plan_id: str) -> None: method get_plans (line 21) | async def get_plans(self) -> list[Plan]: method get_plan (line 25) | async def get_plan(self, plan_id: str) -> Plan | None: FILE: src/agentscope/rag/_document.py class DocMetadata (line 18) | class DocMetadata(DictMixin): class Document (line 35) | class Document: FILE: src/agentscope/rag/_knowledge_base.py class KnowledgeBase (line 13) | class KnowledgeBase: method __init__ (line 28) | def __init__( method retrieve (line 38) | async def retrieve( method add_documents (line 61) | async def add_documents( method retrieve_knowledge (line 77) | async def retrieve_knowledge( FILE: src/agentscope/rag/_reader/_excel_reader.py function _get_excel_column_name (line 17) | def _get_excel_column_name(col_index: int) -> str: function _extract_table_data (line 38) | def _extract_table_data(df: Any) -> list[list[str]]: function _extract_images_from_worksheet (line 69) | def _extract_images_from_worksheet( class ExcelReader (line 120) | class ExcelReader(ReaderBase): method __init__ (line 162) | def __init__( method _validate_init_params (line 226) | def _validate_init_params(self, chunk_size: int, split_by: str) -> None: method __call__ (line 246) | async def __call__( method _process_sheets_merged (line 323) | async def _process_sheets_merged( method _process_sheets_separately (line 358) | async def _process_sheets_separately( method _get_sheet_blocks (line 392) | def _get_sheet_blocks( method _blocks_to_documents (line 499) | async def _blocks_to_documents( method _table_to_markdown (line 548) | def _table_to_markdown( method _table_to_json (line 621) | def _table_to_json( method get_doc_id (line 662) | def get_doc_id(self, excel_path: str) -> str: FILE: src/agentscope/rag/_reader/_image_reader.py class ImageReader (line 10) | class ImageReader(ReaderBase): method __call__ (line 16) | async def __call__(self, image_url: str | list[str]) -> list[Document]: method get_doc_id (line 56) | def get_doc_id(self, image_path: str) -> str: FILE: src/agentscope/rag/_reader/_pdf_reader.py class PDFReader (line 11) | class PDFReader(ReaderBase): method __init__ (line 14) | def __init__( method __call__ (line 50) | async def __call__( method get_doc_id (line 83) | def get_doc_id(self, pdf_path: str) -> str: FILE: src/agentscope/rag/_reader/_ppt_reader.py function _extract_table_data (line 19) | def _extract_table_data(table: Any) -> list[list[str]]: function _extract_images_from_shape (line 44) | def _extract_images_from_shape(shape: Any) -> list[ImageBlock]: class PowerPointReader (line 92) | class PowerPointReader(ReaderBase): method __init__ (line 100) | def __init__( method _validate_init_params (line 167) | def _validate_init_params(self, chunk_size: int, split_by: str) -> None: method __call__ (line 187) | async def __call__( method _process_slides_merged (line 224) | async def _process_slides_merged( method _process_slides_separately (line 252) | async def _process_slides_separately( method _get_slide_blocks (line 279) | def _get_slide_blocks( method _get_slide_header (line 317) | def _get_slide_header(self, slide_idx: int) -> str: method _process_shape (line 332) | def _process_shape( method _add_slide_suffix (line 388) | def _add_slide_suffix( method _extract_shape_content (line 422) | def _extract_shape_content( method _add_table_block (line 481) | def _add_table_block( method _add_text_block (line 524) | def _add_text_block( method _blocks_to_documents (line 566) | async def _blocks_to_documents( method get_doc_id (line 621) | def get_doc_id(self, ppt_path: str) -> str: FILE: src/agentscope/rag/_reader/_reader_base.py class ReaderBase (line 9) | class ReaderBase: method __call__ (line 15) | async def __call__(self, *args: Any, **kwargs: Any) -> list[Document]: method get_doc_id (line 20) | def get_doc_id(self, *args: Any, **kwargs: Any) -> str: FILE: src/agentscope/rag/_reader/_text_reader.py class TextReader (line 13) | class TextReader(ReaderBase): method __init__ (line 17) | def __init__( method __call__ (line 47) | async def __call__( method get_doc_id (line 146) | def get_doc_id(self, text: str) -> str: FILE: src/agentscope/rag/_reader/_utils.py function _get_media_type_from_data (line 6) | def _get_media_type_from_data(data: bytes) -> str: function _table_to_json (line 39) | def _table_to_json(table_data: list[list[str]]) -> str: function _table_to_markdown (line 58) | def _table_to_markdown(table_data: list[list[str]]) -> str: FILE: src/agentscope/rag/_reader/_word_reader.py function _extract_text_from_paragraph (line 29) | def _extract_text_from_paragraph(para: DocxParagraph) -> str: function _extract_table_data (line 77) | def _extract_table_data(table: DocxTable) -> list[list[str]]: function _extract_image_data (line 122) | def _extract_image_data(para: DocxParagraph) -> list[ImageBlock]: class WordReader (line 209) | class WordReader(ReaderBase): method __init__ (line 218) | def __init__( method __call__ (line 280) | async def __call__( method _get_data_blocks (line 337) | def _get_data_blocks(self, word_path: str) -> list[TextBlock | ImageBl... method get_doc_id (line 445) | def get_doc_id(self, word_path: str) -> str: FILE: src/agentscope/rag/_simple_knowledge.py class SimpleKnowledge (line 10) | class SimpleKnowledge(KnowledgeBase): method retrieve (line 13) | async def retrieve( method add_documents (line 54) | async def add_documents( FILE: src/agentscope/rag/_store/_alibabacloud_mysql_store.py class AlibabaCloudMySQLStore (line 19) | class AlibabaCloudMySQLStore(VDBStoreBase): method __init__ (line 37) | def __init__( method _get_distance_function (line 112) | def _get_distance_function(self) -> str: method _format_vector_for_sql (line 130) | def _format_vector_for_sql(self, vector: list[float]) -> str: method _validate_table (line 141) | async def _validate_table(self) -> None: method add (line 171) | async def add(self, documents: list[Document], **kwargs: Any) -> None: method search (line 238) | async def search( method delete (line 345) | async def delete( method get_client (line 380) | def get_client(self) -> MySQLConnection: method close (line 390) | def close(self) -> None: method __del__ (line 397) | def __del__(self) -> None: FILE: src/agentscope/rag/_store/_milvuslite_store.py class MilvusLiteStore (line 19) | class MilvusLiteStore(VDBStoreBase): method __init__ (line 31) | def __init__( method _validate_collection (line 86) | async def _validate_collection(self) -> None: method add (line 100) | async def add(self, documents: list[Document], **kwargs: Any) -> None: method search (line 150) | async def search( method delete (line 221) | async def delete( method get_client (line 249) | def get_client(self) -> MilvusClient: FILE: src/agentscope/rag/_store/_mongodb_store.py class MongoDBStore (line 24) | class MongoDBStore(VDBStoreBase): method __init__ (line 38) | def __init__( method _validate_db_and_collection (line 109) | async def _validate_db_and_collection(self) -> None: method _wait_for_index_ready (line 164) | async def _wait_for_index_ready(self, timeout: int = 30) -> None: method add (line 193) | async def add(self, documents: list[Document], **kwargs: Any) -> None: method search (line 252) | async def search( method delete (line 341) | async def delete( method get_client (line 361) | def get_client(self) -> AsyncMongoClient: method delete_collection (line 369) | async def delete_collection(self) -> None: method delete_database (line 377) | async def delete_database(self) -> None: method close (line 386) | async def close(self) -> None: FILE: src/agentscope/rag/_store/_oceanbase_store.py class OceanBaseStore (line 38) | class OceanBaseStore(VDBStoreBase): method __init__ (line 54) | def __init__( method _get_metric_type (line 115) | def _get_metric_type(self) -> str: method _get_search_metric_type (line 119) | def _get_search_metric_type(self) -> str: method _validate_collection (line 130) | async def _validate_collection(self) -> None: method _create_schema (line 157) | def _create_schema(self) -> Any: method _create_index_params (line 202) | def _create_index_params(self) -> Any: method _content_to_text (line 218) | def _content_to_text(content: Any) -> str: method _normalize_content (line 228) | def _normalize_content(content: Any, fallback_text: str) -> Any: method _document_to_dict (line 239) | def _document_to_dict(self, doc: Document) -> dict[str, Any]: method add (line 279) | async def add(self, documents: list[Document], **kwargs: Any) -> None: method _extract_distance (line 298) | def _extract_distance( method _create_document_from_row (line 309) | def _create_document_from_row( method _convert_distance_to_score (line 349) | def _convert_distance_to_score( method search (line 371) | async def search( method _prepare_output_fields (line 430) | def _prepare_output_fields( method _prepare_search_params (line 456) | def _prepare_search_params( method _filter_results_by_threshold (line 474) | def _filter_results_by_threshold( method delete (line 507) | async def delete( method get_client (line 544) | def get_client(self) -> MilvusLikeClient: FILE: src/agentscope/rag/_store/_qdrant_store.py class QdrantStore (line 18) | class QdrantStore(VDBStoreBase): method __init__ (line 27) | def __init__( method _validate_collection (line 74) | async def _validate_collection(self) -> None: method add (line 89) | async def add(self, documents: list[Document], **kwargs: Any) -> None: method search (line 121) | async def search( method delete (line 159) | async def delete(self, *args: Any, **kwargs: Any) -> None: method get_client (line 165) | def get_client(self) -> AsyncQdrantClient: FILE: src/agentscope/rag/_store/_store_base.py class VDBStoreBase (line 10) | class VDBStoreBase: method add (line 15) | async def add(self, documents: list[Document], **kwargs: Any) -> None: method delete (line 19) | async def delete(self, *args: Any, **kwargs: Any) -> None: method search (line 23) | async def search( method get_client (line 43) | def get_client(self) -> Any: FILE: src/agentscope/realtime/_base.py class RealtimeModelBase (line 13) | class RealtimeModelBase: method __init__ (line 34) | def __init__( method send (line 57) | async def send( method connect (line 68) | async def connect( method _build_session_config (line 102) | def _build_session_config( method disconnect (line 124) | async def disconnect(self) -> None: method _receive_model_event_loop (line 134) | async def _receive_model_event_loop(self, outgoing_queue: Queue) -> None: method parse_api_message (line 160) | async def parse_api_message( FILE: src/agentscope/realtime/_dashscope_realtime_model.py class DashScopeRealtimeModel (line 15) | class DashScopeRealtimeModel(RealtimeModelBase): method __init__ (line 44) | def __init__( method _build_session_config (line 96) | def _build_session_config( method send (line 133) | async def send( method parse_api_message (line 209) | async def parse_api_message( method _parse_image_data (line 341) | async def _parse_image_data(self, block: ImageBlock) -> str: method _parse_audio_data (line 374) | async def _parse_audio_data(self, block: AudioBlock) -> str: FILE: src/agentscope/realtime/_events/_client_event.py class ClientEventType (line 12) | class ClientEventType(str, Enum): class ClientEvents (line 45) | class ClientEvents: class EventBase (line 48) | class EventBase(BaseModel): class ClientSessionCreateEvent (line 52) | class ClientSessionCreateEvent(EventBase): class ClientSessionEndEvent (line 61) | class ClientSessionEndEvent(EventBase): class ClientResponseCreateEvent (line 70) | class ClientResponseCreateEvent(EventBase): class ClientResponseCancelEvent (line 79) | class ClientResponseCancelEvent(EventBase): class ClientImageAppendEvent (line 88) | class ClientImageAppendEvent(EventBase): class ClientTextAppendEvent (line 103) | class ClientTextAppendEvent(EventBase): class ClientAudioAppendEvent (line 115) | class ClientAudioAppendEvent(EventBase): class ClientAudioCommitEvent (line 130) | class ClientAudioCommitEvent(EventBase): class ClientToolResultEvent (line 139) | class ClientToolResultEvent(EventBase): method from_json (line 170) | def from_json(cls, json_data: dict) -> EventBase: FILE: src/agentscope/realtime/_events/_model_event.py class ModelEventType (line 13) | class ModelEventType(str, Enum): class ModelEvents (line 84) | class ModelEvents: class EventBase (line 88) | class EventBase(BaseModel): class ModelSessionCreatedEvent (line 92) | class ModelSessionCreatedEvent(EventBase): class ModelSessionEndedEvent (line 107) | class ModelSessionEndedEvent(EventBase): class ModelResponseCreatedEvent (line 125) | class ModelResponseCreatedEvent(EventBase): class ModelResponseDoneEvent (line 136) | class ModelResponseDoneEvent(EventBase): class ModelResponseAudioDeltaEvent (line 156) | class ModelResponseAudioDeltaEvent(EventBase): class ModelResponseAudioDoneEvent (line 176) | class ModelResponseAudioDoneEvent(EventBase): class ModelResponseAudioTranscriptDeltaEvent (line 190) | class ModelResponseAudioTranscriptDeltaEvent(EventBase): class ModelResponseAudioTranscriptDoneEvent (line 207) | class ModelResponseAudioTranscriptDoneEvent(EventBase): class ModelResponseToolUseDeltaEvent (line 221) | class ModelResponseToolUseDeltaEvent(EventBase): class ModelResponseToolUseDoneEvent (line 239) | class ModelResponseToolUseDoneEvent(EventBase): class ModelInputTranscriptionDeltaEvent (line 256) | class ModelInputTranscriptionDeltaEvent(EventBase): class ModelInputTranscriptionDoneEvent (line 270) | class ModelInputTranscriptionDoneEvent(EventBase): class ModelInputStartedEvent (line 290) | class ModelInputStartedEvent(EventBase): class ModelInputDoneEvent (line 304) | class ModelInputDoneEvent(EventBase): class ModelErrorEvent (line 318) | class ModelErrorEvent(EventBase): class WebsocketConnectEvent (line 333) | class WebsocketConnectEvent(EventBase): class WebsocketDisconnectEvent (line 339) | class WebsocketDisconnectEvent(EventBase): FILE: src/agentscope/realtime/_events/_server_event.py class ServerEventType (line 13) | class ServerEventType(str, Enum): class ServerEvents (line 91) | class ServerEvents: class EventBase (line 94) | class EventBase(BaseModel): class ServerSessionCreatedEvent (line 98) | class ServerSessionCreatedEvent(EventBase): class ServerSessionUpdatedEvent (line 109) | class ServerSessionUpdatedEvent(EventBase): class ServerSessionEndedEvent (line 120) | class ServerSessionEndedEvent(EventBase): class AgentReadyEvent (line 131) | class AgentReadyEvent(EventBase): class AgentEndedEvent (line 145) | class AgentEndedEvent(EventBase): class AgentResponseCreatedEvent (line 159) | class AgentResponseCreatedEvent(EventBase): class AgentResponseDoneEvent (line 176) | class AgentResponseDoneEvent(EventBase): class AgentResponseAudioDeltaEvent (line 202) | class AgentResponseAudioDeltaEvent(EventBase): class AgentResponseAudioDoneEvent (line 228) | class AgentResponseAudioDoneEvent(EventBase): class AgentResponseAudioTranscriptDeltaEvent (line 247) | class AgentResponseAudioTranscriptDeltaEvent(EventBase): class AgentResponseAudioTranscriptDoneEvent (line 270) | class AgentResponseAudioTranscriptDoneEvent(EventBase): class AgentResponseToolUseDeltaEvent (line 290) | class AgentResponseToolUseDeltaEvent(EventBase): class AgentResponseToolUseDoneEvent (line 314) | class AgentResponseToolUseDoneEvent(EventBase): class AgentResponseToolResultEvent (line 337) | class AgentResponseToolResultEvent(EventBase): class AgentInputTranscriptionDeltaEvent (line 354) | class AgentInputTranscriptionDeltaEvent(EventBase): class AgentInputTranscriptionDoneEvent (line 374) | class AgentInputTranscriptionDoneEvent(EventBase): class AgentInputStartedEvent (line 400) | class AgentInputStartedEvent(EventBase): class AgentInputDoneEvent (line 420) | class AgentInputDoneEvent(EventBase): class AgentErrorEvent (line 440) | class AgentErrorEvent(EventBase): method from_model_event (line 464) | def from_model_event( FILE: src/agentscope/realtime/_events/_utils.py class AudioFormat (line 6) | class AudioFormat(BaseModel): FILE: src/agentscope/realtime/_gemini_realtime_model.py class GeminiRealtimeModel (line 21) | class GeminiRealtimeModel(RealtimeModelBase): method __init__ (line 50) | def __init__( method _build_session_config (line 93) | def _build_session_config( method _format_toolkit_schema (line 152) | def _format_toolkit_schema( method send (line 175) | async def send( method parse_api_message (line 251) | async def parse_api_message( method _ensure_response_id (line 324) | def _ensure_response_id(self) -> str: method _parse_model_turn (line 339) | def _parse_model_turn( method _parse_inline_data (line 375) | def _parse_inline_data( method _parse_server_content (line 408) | async def _parse_server_content( method _parse_tool_call (line 478) | async def _parse_tool_call( method _parse_image_data (line 518) | async def _parse_image_data(self, block: ImageBlock) -> str | None: method _parse_audio_data (line 553) | async def _parse_audio_data(self, block: AudioBlock) -> str: method _parse_text_data (line 586) | async def _parse_text_data(self, block: TextBlock) -> str: method _parse_tool_result_data (line 615) | async def _parse_tool_result_data(self, block: ToolResultBlock) -> str: FILE: src/agentscope/realtime/_openai_realtime_model.py class OpenAIRealtimeModel (line 19) | class OpenAIRealtimeModel(RealtimeModelBase): method __init__ (line 40) | def __init__( method _build_session_config (line 86) | def _build_session_config( method _format_toolkit_schema (line 127) | def _format_toolkit_schema( method send (line 151) | async def send( method parse_api_message (line 218) | async def parse_api_message( method _parse_audio_data (line 403) | async def _parse_audio_data(self, block: AudioBlock) -> str: method _parse_text_data (line 433) | async def _parse_text_data(self, block: TextBlock) -> str: method _parse_tool_result_data (line 463) | async def _parse_tool_result_data(self, block: ToolResultBlock) -> str: FILE: src/agentscope/session/_json_session.py class JSONSession (line 12) | class JSONSession(SessionBase): method __init__ (line 15) | def __init__( method _get_save_path (line 27) | def _get_save_path(self, session_id: str, user_id: str) -> str: method save_session_state (line 47) | async def save_session_state( method load_session_state (line 81) | async def load_session_state( FILE: src/agentscope/session/_redis_session.py class RedisSession (line 17) | class RedisSession(SessionBase): method __init__ (line 25) | def __init__( method get_client (line 81) | def get_client(self) -> Redis: method _get_session_key (line 90) | def _get_session_key( method save_session_state (line 101) | async def save_session_state( method load_session_state (line 129) | async def load_session_state( method close (line 180) | async def close(self) -> None: method __aenter__ (line 184) | async def __aenter__(self) -> "RedisSession": method __aexit__ (line 193) | async def __aexit__( FILE: src/agentscope/session/_session_base.py class SessionBase (line 8) | class SessionBase: method save_session_state (line 12) | async def save_session_state( method load_session_state (line 30) | async def load_session_state( FILE: src/agentscope/token/_anthropic_token_counter.py class AnthropicTokenCounter (line 7) | class AnthropicTokenCounter(TokenCounterBase): method __init__ (line 10) | def __init__(self, model_name: str, api_key: str, **kwargs: Any) -> None: method count (line 24) | async def count( FILE: src/agentscope/token/_char_token_counter.py class CharTokenCounter (line 8) | class CharTokenCounter(TokenCounterBase): method count (line 17) | async def count( FILE: src/agentscope/token/_gemini_token_counter.py class GeminiTokenCounter (line 8) | class GeminiTokenCounter(TokenCounterBase): method __init__ (line 11) | def __init__(self, model_name: str, api_key: str, **kwargs: Any) -> None: method count (line 31) | async def count( FILE: src/agentscope/token/_huggingface_token_counter.py class HuggingFaceTokenCounter (line 9) | class HuggingFaceTokenCounter(TokenCounterBase): method __init__ (line 12) | def __init__( method count (line 65) | async def count( FILE: src/agentscope/token/_openai_token_counter.py function _calculate_tokens_for_high_quality_image (line 18) | def _calculate_tokens_for_high_quality_image( function _get_size_of_image_url (line 51) | def _get_size_of_image_url(url: str) -> tuple[int, int]: function _get_base_and_tile_tokens (line 82) | def _get_base_and_tile_tokens(model_name: str) -> tuple[int, int]: function _calculate_tokens_for_tools (line 121) | def _calculate_tokens_for_tools( function _count_content_tokens_for_openai_vision_model (line 177) | def _count_content_tokens_for_openai_vision_model( class OpenAITokenCounter (line 297) | class OpenAITokenCounter(TokenCounterBase): method __init__ (line 300) | def __init__(self, model_name: str) -> None: method count (line 309) | async def count( FILE: src/agentscope/token/_token_base.py class TokenCounterBase (line 7) | class TokenCounterBase: method count (line 11) | async def count( FILE: src/agentscope/tool/_async_wrapper.py function _postprocess_tool_response (line 16) | async def _postprocess_tool_response( function _object_wrapper (line 38) | async def _object_wrapper( function _sync_generator_wrapper (line 50) | async def _sync_generator_wrapper( function _async_generator_wrapper (line 63) | async def _async_generator_wrapper( FILE: src/agentscope/tool/_coding/_python.py function execute_python_code (line 17) | async def execute_python_code( FILE: src/agentscope/tool/_coding/_shell.py function execute_shell_command (line 12) | async def execute_shell_command( FILE: src/agentscope/tool/_multi_modality/_dashscope_tools.py function dashscope_text_to_image (line 18) | def dashscope_text_to_image( function dashscope_image_to_text (line 117) | def dashscope_image_to_text( function dashscope_text_to_audio (line 229) | def dashscope_text_to_audio( FILE: src/agentscope/tool/_multi_modality/_openai_tools.py function _parse_url (line 24) | def _parse_url(url: str) -> BytesIO | IO[bytes]: function openai_text_to_image (line 39) | def openai_text_to_image( function openai_edit_image (line 180) | def openai_edit_image( function openai_create_image_variation (line 320) | def openai_create_image_variation( function openai_image_to_text (line 416) | def openai_image_to_text( function openai_text_to_audio (line 500) | def openai_text_to_audio( function openai_audio_to_text (line 591) | def openai_audio_to_text( FILE: src/agentscope/tool/_response.py class ToolResponse (line 12) | class ToolResponse: FILE: src/agentscope/tool/_text_file/_utils.py function _calculate_view_ranges (line 6) | def _calculate_view_ranges( function _assert_ranges (line 36) | def _assert_ranges( function _view_text_file (line 62) | def _view_text_file( FILE: src/agentscope/tool/_text_file/_view_text_file.py function view_text_file (line 13) | async def view_text_file( FILE: src/agentscope/tool/_text_file/_write_text_file.py function insert_text_file (line 12) | async def insert_text_file( function write_text_file (line 108) | async def write_text_file( FILE: src/agentscope/tool/_toolkit.py function _apply_middlewares (line 57) | def _apply_middlewares( class Toolkit (line 117) | class Toolkit(StateModule): method __init__ (line 152) | def __init__( method create_tool_group (line 182) | def create_tool_group( method update_tool_groups (line 217) | def update_tool_groups(self, group_names: list[str], active: bool) -> ... method remove_tool_groups (line 236) | def remove_tool_groups(self, group_names: str | list[str]) -> None: method register_tool_function (line 269) | def register_tool_function( method remove_tool_function (line 523) | def remove_tool_function( method get_json_schemas (line 545) | def get_json_schemas( method set_extended_model (line 608) | def set_extended_model( method remove_mcp_clients (line 636) | async def remove_mcp_clients( method call_tool_function (line 674) | async def call_tool_function( method register_mcp_client (line 817) | async def register_mcp_client( method state_dict (line 957) | def state_dict(self) -> dict[str, Any]: method load_state_dict (line 970) | def load_state_dict( method get_activated_notes (line 1009) | def get_activated_notes(self) -> str: method reset_equipped_tools (line 1027) | def reset_equipped_tools(self, **kwargs: Any) -> ToolResponse: method clear (line 1091) | def clear(self) -> None: method _validate_tool_function (line 1096) | def _validate_tool_function(self, func_name: str) -> None: method register_agent_skill (line 1105) | def register_agent_skill( method remove_agent_skill (line 1173) | def remove_agent_skill(self, name: str) -> None: method get_agent_skill_prompt (line 1188) | def get_agent_skill_prompt(self) -> str | None: method register_middleware (line 1218) | def register_middleware( FILE: src/agentscope/tool/_types.py class RegisteredToolFunction (line 16) | class RegisteredToolFunction: method extended_json_schema (line 59) | def extended_json_schema(self) -> dict: class ToolGroup (line 132) | class ToolGroup: class AgentSkill (line 148) | class AgentSkill(TypedDict): FILE: src/agentscope/tracing/_attributes.py class SpanAttributes (line 8) | class SpanAttributes: class OperationNameValues (line 131) | class OperationNameValues: class ProviderNameValues (line 153) | class ProviderNameValues: FILE: src/agentscope/tracing/_converter.py function _convert_media_block (line 11) | def _convert_media_block( function _convert_block_to_part (line 57) | def _convert_block_to_part(block: ContentBlock) -> Dict[str, Any] | None: FILE: src/agentscope/tracing/_extractor.py function _get_common_attributes (line 52) | def _get_common_attributes() -> Dict[str, str]: function _get_format_target (line 66) | def _get_format_target(instance: Any) -> str: function _get_provider_name (line 88) | def _get_provider_name(instance: ChatModelBase) -> str: function _get_tool_definitions (line 136) | def _get_tool_definitions( function _get_llm_request_attributes (line 198) | def _get_llm_request_attributes( function _get_llm_span_name (line 270) | def _get_llm_span_name(attributes: Dict[str, str]) -> str: function _get_llm_output_messages (line 289) | def _get_llm_output_messages( function _get_llm_response_attributes (line 346) | def _get_llm_response_attributes( function _get_agent_messages (line 394) | def _get_agent_messages( function _get_agent_request_attributes (line 447) | def _get_agent_request_attributes( function _get_agent_span_name (line 507) | def _get_agent_span_name(attributes: Dict[str, str]) -> str: function _get_agent_response_attributes (line 526) | def _get_agent_response_attributes( function _get_tool_request_attributes (line 552) | def _get_tool_request_attributes( function _get_tool_span_name (line 609) | def _get_tool_span_name(attributes: Dict[str, str]) -> str: function _get_tool_response_attributes (line 628) | def _get_tool_response_attributes( function _get_formatter_request_attributes (line 655) | def _get_formatter_request_attributes( function _get_formatter_span_name (line 691) | def _get_formatter_span_name(attributes: Dict[str, str]) -> str: function _get_formatter_response_attributes (line 710) | def _get_formatter_response_attributes( function _get_generic_function_request_attributes (line 734) | def _get_generic_function_request_attributes( function _get_generic_function_span_name (line 771) | def _get_generic_function_span_name(attributes: Dict[str, str]) -> str: function _get_generic_function_response_attributes (line 790) | def _get_generic_function_response_attributes( function _get_embedding_request_attributes (line 811) | def _get_embedding_request_attributes( function _get_embedding_span_name (line 855) | def _get_embedding_span_name(attributes: Dict[str, str]) -> str: function _get_embedding_response_attributes (line 874) | def _get_embedding_response_attributes( FILE: src/agentscope/tracing/_setup.py function setup_tracing (line 11) | def setup_tracing(endpoint: str) -> None: function _get_tracer (line 41) | def _get_tracer() -> Tracer: FILE: src/agentscope/tracing/_trace.py function _check_tracing_enabled (line 69) | def _check_tracing_enabled() -> bool: function _set_span_success_status (line 80) | def _set_span_success_status(span: Span) -> None: function _set_span_error_status (line 92) | def _set_span_error_status(span: Span, e: Exception) -> None: function _trace_sync_generator_wrapper (line 107) | def _trace_sync_generator_wrapper( function _trace_async_generator_wrapper (line 134) | async def _trace_async_generator_wrapper( function trace (line 192) | def trace( function trace_toolkit (line 322) | def trace_toolkit( function trace_reply (line 367) | def trace_reply( function trace_embedding (line 436) | def trace_embedding( function trace_format (line 496) | def trace_format( function trace_llm (line 567) | def trace_llm( FILE: src/agentscope/tracing/_utils.py function _to_serializable (line 15) | def _to_serializable( function _serialize_to_str (line 60) | def _serialize_to_str(value: Any) -> str: FILE: src/agentscope/tts/_dashscope_cosyvoice_realtime_tts_model.py class DashScopeCosyVoiceRealtimeTTSModel (line 13) | class DashScopeCosyVoiceRealtimeTTSModel(TTSModelBase): method __init__ (line 31) | def __init__( method connect (line 127) | async def connect(self) -> None: method close (line 140) | async def close(self) -> None: method push (line 144) | async def push( method synthesize (line 215) | async def synthesize( FILE: src/agentscope/tts/_dashscope_cosyvoice_tts_model.py class DashScopeCosyVoiceTTSModel (line 14) | class DashScopeCosyVoiceTTSModel(TTSModelBase): method __init__ (line 29) | def __init__( method _create_synthesizer (line 84) | def _create_synthesizer(self) -> tuple: method push (line 100) | async def push(self, msg: Msg, **kwargs: Any) -> TTSResponse: method synthesize (line 115) | async def synthesize( FILE: src/agentscope/tts/_dashscope_realtime_tts_model.py function _get_qwen_tts_realtime_callback_class (line 24) | def _get_qwen_tts_realtime_callback_class() -> type["QwenTtsRealtimeCall... class DashScopeRealtimeTTSModel (line 170) | class DashScopeRealtimeTTSModel(TTSModelBase): method __init__ (line 188) | def __init__( method connect (line 278) | async def connect(self) -> None: method close (line 294) | async def close(self) -> None: method push (line 304) | async def push( method synthesize (line 379) | async def synthesize( FILE: src/agentscope/tts/_dashscope_tts_model.py class DashScopeTTSModel (line 28) | class DashScopeTTSModel(TTSModelBase): method __init__ (line 37) | def __init__( method synthesize (line 78) | async def synthesize( method _parse_into_async_generator (line 137) | async def _parse_into_async_generator( FILE: src/agentscope/tts/_gemini_tts_model.py class GeminiTTSModel (line 19) | class GeminiTTSModel(TTSModelBase): method __init__ (line 28) | def __init__( method synthesize (line 79) | async def synthesize( method _parse_into_async_generator (line 175) | async def _parse_into_async_generator( FILE: src/agentscope/tts/_openai_tts_model.py class OpenAITTSModel (line 17) | class OpenAITTSModel(TTSModelBase): method __init__ (line 26) | def __init__( method synthesize (line 76) | async def synthesize( method _parse_into_async_generator (line 139) | async def _parse_into_async_generator( FILE: src/agentscope/tts/_tts_base.py class TTSModelBase (line 12) | class TTSModelBase(ABC): method __init__ (line 40) | def __init__(self, model_name: str, stream: bool) -> None: method __aenter__ (line 52) | async def __aenter__(self) -> "TTSModelBase": method __aexit__ (line 60) | async def __aexit__( method connect (line 70) | async def connect(self) -> None: method close (line 82) | async def close(self) -> None: method push (line 94) | async def push( method synthesize (line 125) | async def synthesize( FILE: src/agentscope/tts/_tts_response.py class TTSUsage (line 14) | class TTSUsage(DictMixin): class TTSResponse (line 31) | class TTSResponse(DictMixin): FILE: src/agentscope/tts/_utils.py function _get_cosyvoice_callback_class (line 18) | def _get_cosyvoice_callback_class() -> type["ResultCallback"]: FILE: src/agentscope/tuner/_algorithm.py class AlgorithmConfig (line 7) | class AlgorithmConfig(BaseModel): FILE: src/agentscope/tuner/_config.py function _set_if_not_none (line 14) | def _set_if_not_none(obj: Any, field: str, value: Any) -> None: function _to_trinity_config (line 20) | def _to_trinity_config( function _load_config_from_path_or_default (line 124) | def _load_config_from_path_or_default( function check_workflow_function (line 184) | def check_workflow_function( function check_judge_function (line 201) | def check_judge_function( function _check_function_signature (line 218) | def _check_function_signature( FILE: src/agentscope/tuner/_dataset.py class DatasetConfig (line 8) | class DatasetConfig(BaseModel): method preview (line 38) | def preview(self, n: int = 5) -> List: FILE: src/agentscope/tuner/_judge.py class JudgeOutput (line 9) | class JudgeOutput(BaseModel): FILE: src/agentscope/tuner/_model.py class TunerModelConfig (line 8) | class TunerModelConfig(BaseModel): method get_config (line 78) | def get_config(self) -> Dict[str, Any]: class TinkerConfig (line 96) | class TinkerConfig(BaseModel): method get_config (line 135) | def get_config(self) -> Dict[str, Any]: FILE: src/agentscope/tuner/_tune.py function tune (line 16) | def tune( FILE: src/agentscope/tuner/_workflow.py class WorkflowOutput (line 9) | class WorkflowOutput(BaseModel): FILE: tests/a2a_agent_test.py class MockA2AClient (line 24) | class MockA2AClient: method __init__ (line 27) | def __init__(self, response_type: str = "message") -> None: method send_message (line 37) | async def send_message( class MockClientFactory (line 87) | class MockClientFactory: method __init__ (line 90) | def __init__(self, response_type: str = "message") -> None: method create (line 95) | def create(self, card: AgentCard) -> MockA2AClient: class A2AAgentTest (line 103) | class A2AAgentTest(IsolatedAsyncioTestCase): method asyncSetUp (line 106) | async def asyncSetUp(self) -> None: method test_reply_with_task (line 120) | async def test_reply_with_task(self) -> None: method test_reply_with_no_messages (line 149) | async def test_reply_with_no_messages(self) -> None: method test_observe_method (line 191) | async def test_observe_method(self) -> None: method test_observe_and_reply_merge (line 212) | async def test_observe_and_reply_merge(self) -> None: method test_reply_with_only_observed_messages (line 234) | async def test_reply_with_only_observed_messages(self) -> None: FILE: tests/a2a_resolver_test.py class A2AAgentCardResolverTest (line 12) | class A2AAgentCardResolverTest(IsolatedAsyncioTestCase): method asyncSetUp (line 15) | async def asyncSetUp(self) -> None: method test_file_card_resolver (line 53) | async def test_file_card_resolver(self) -> None: FILE: tests/config_test.py function async_task (line 14) | async def async_task(field: str) -> str: function sync_task (line 32) | def sync_task(field: str) -> None: class ConfigTest (line 50) | class ConfigTest(IsolatedAsyncioTestCase): method test_config_attributes (line 53) | async def test_config_attributes(self) -> None: FILE: tests/embedding_cache_test.py class EmbeddingCacheTest (line 13) | class EmbeddingCacheTest(IsolatedAsyncioTestCase): method asyncSetUp (line 16) | async def asyncSetUp(self) -> None: method _get_filenames (line 59) | def _get_filenames(self, path_dir: str) -> list[str]: method test_embedding_cache (line 70) | async def test_embedding_cache(self) -> None: method asyncTearDown (line 165) | async def asyncTearDown(self) -> None: FILE: tests/evaluation_test.py class CheckEqual (line 53) | class CheckEqual(MetricBase): method __init__ (line 56) | def __init__( method __call__ (line 68) | async def __call__( class ToyBenchmark (line 86) | class ToyBenchmark(BenchmarkBase): method __init__ (line 89) | def __init__(self) -> None: method _load_data (line 98) | def _load_data() -> list[Task]: method __iter__ (line 115) | def __iter__(self) -> Generator[Task, None, None]: method __getitem__ (line 120) | def __getitem__(self, index: int) -> Task: method __len__ (line 124) | def __len__(self) -> int: class EvalTestAgent (line 129) | class EvalTestAgent(AgentBase): method __init__ (line 132) | def __init__(self) -> None: method reply (line 138) | async def reply(self, msg: Msg) -> Msg: method handle_interrupt (line 147) | async def handle_interrupt( method observe (line 155) | async def observe(self, msg: Msg | list[Msg] | None) -> None: function dummy_solution_generation (line 160) | async def dummy_solution_generation( class EvaluatorTest (line 176) | class EvaluatorTest(IsolatedAsyncioTestCase): method asyncSetUp (line 179) | async def asyncSetUp(self) -> None: method test_general_evaluator (line 210) | async def test_general_evaluator(self) -> None: method test_ray_evaluator (line 243) | async def test_ray_evaluator(self) -> None: method asyncTearDown (line 276) | async def asyncTearDown(self) -> None: FILE: tests/formatter_a2a_test.py class A2AFormatterTest (line 35) | class A2AFormatterTest(IsolatedAsyncioTestCase): method asyncSetUp (line 38) | async def asyncSetUp(self) -> None: method test_as_to_a2a (line 160) | async def test_as_to_a2a(self) -> None: method test_a2a_msg_to_as (line 249) | async def test_a2a_msg_to_as(self) -> None: method test_a2a_task_to_as (line 300) | async def test_a2a_task_to_as(self) -> None: FILE: tests/formatter_anthropic_test.py class TestAnthropicChatFormatterFormatter (line 19) | class TestAnthropicChatFormatterFormatter(IsolatedAsyncioTestCase): method asyncSetUp (line 22) | async def asyncSetUp(self) -> None: method test_chat_formatter (line 460) | async def test_chat_formatter(self) -> None: method test_multiagent_formater (line 509) | async def test_multiagent_formater(self) -> None: FILE: tests/formatter_dashscope_test.py class TestDashScopeFormatter (line 24) | class TestDashScopeFormatter(IsolatedAsyncioTestCase): method asyncSetUp (line 27) | async def asyncSetUp(self) -> None: method _mock_save_base64_data (line 482) | def _mock_save_base64_data( method test_chat_formatter (line 506) | async def test_chat_formatter( method test_chat_formatter_with_extract_media_blocks (line 554) | async def test_chat_formatter_with_extract_media_blocks( method test_multiagent_formater (line 680) | async def test_multiagent_formater( method test_multiagent_formatter_with_promote_media_tool_result (line 781) | async def test_multiagent_formatter_with_promote_media_tool_result( method asyncTearDown (line 905) | async def asyncTearDown(self) -> None: FILE: tests/formatter_deepseek_test.py class TestDeepSeekFormatter (line 18) | class TestDeepSeekFormatter(IsolatedAsyncioTestCase): method asyncSetUp (line 21) | async def asyncSetUp(self) -> None: method test_chat_formatter (line 335) | async def test_chat_formatter(self) -> None: method test_multi_agent_formatter (line 376) | async def test_multi_agent_formatter( FILE: tests/formatter_gemini_test.py class TestGeminiFormatter (line 20) | class TestGeminiFormatter(IsolatedAsyncioTestCase): method asyncSetUp (line 23) | async def asyncSetUp(self) -> None: method test_chat_formatter (line 580) | async def test_chat_formatter( method test_chat_formatter_with_extract_image_blocks (line 625) | async def test_chat_formatter_with_extract_image_blocks( method test_multi_agent_formatter (line 771) | async def test_multi_agent_formatter( method test_multi_agent_formatter_with_promote_tool_result_images (line 862) | async def test_multi_agent_formatter_with_promote_tool_result_images( method asyncTearDown (line 994) | async def asyncTearDown(self) -> None: FILE: tests/formatter_ollama_test.py class TestOllamaFormatter (line 18) | class TestOllamaFormatter(IsolatedAsyncioTestCase): method asyncSetUp (line 21) | async def asyncSetUp(self) -> None: method test_chat_formatter (line 369) | async def test_chat_formatter(self) -> None: method test_chat_formatter_with_extract_image_blocks (line 410) | async def test_chat_formatter_with_extract_image_blocks( method test_multi_agent_formatter (line 485) | async def test_multi_agent_formatter( method test_multi_agent_formatter_with_promote_tool_result_images (line 574) | async def test_multi_agent_formatter_with_promote_tool_result_images( method asyncTearDown (line 653) | async def asyncTearDown(self) -> None: FILE: tests/formatter_openai_test.py class TestOpenAIFormatter (line 21) | class TestOpenAIFormatter(IsolatedAsyncioTestCase): method asyncSetUp (line 24) | async def asyncSetUp(self) -> None: method test_formatter (line 392) | async def test_formatter(self, mock_save_base64_data: MagicMock) -> None: method test_formatter_with_extract_image_blocks (line 436) | async def test_formatter_with_extract_image_blocks( method test_multiagent_formatter (line 595) | async def test_multiagent_formatter( method test_multiagent_formatter_with_promote_tool_result_images (line 641) | async def test_multiagent_formatter_with_promote_tool_result_images( method asyncTearDown (line 773) | async def asyncTearDown(self) -> None: FILE: tests/hook_test.py class MyAgent (line 10) | class MyAgent(AgentBase): method __init__ (line 13) | def __init__(self) -> None: method reply (line 19) | async def reply(self, msg: Msg) -> Msg: method observe (line 31) | async def observe(self, msg: Msg) -> None: method handle_interrupt (line 35) | async def handle_interrupt(self, *args: Any, **kwargs: Any) -> Msg: class ChildAgent (line 41) | class ChildAgent(MyAgent): class GrandChildAgent (line 45) | class GrandChildAgent(ChildAgent): class AgentA (line 49) | class AgentA(MyAgent): class AgentB (line 53) | class AgentB(MyAgent): class AgentC (line 57) | class AgentC(AgentA, AgentB): function async_pre_func_w_modifying (line 61) | async def async_pre_func_w_modifying( function async_pre_func_wo_modifying (line 78) | async def async_pre_func_wo_modifying( function sync_pre_func_w_modifying (line 93) | def sync_pre_func_w_modifying( function sync_pre_func_wo_modifying (line 110) | def sync_pre_func_wo_modifying( function async_post_func_w_modifying (line 126) | async def async_post_func_w_modifying( function async_post_func_wo_modifying (line 143) | async def async_post_func_wo_modifying( function sync_post_func_w_modifying (line 159) | def sync_post_func_w_modifying( function sync_post_func_wo_modifying (line 176) | def sync_post_func_wo_modifying( class HookTest (line 192) | class HookTest(IsolatedAsyncioTestCase): method asyncSetUp (line 195) | async def asyncSetUp(self) -> None: method msg (line 200) | def msg(self) -> Msg: method test_reply_hooks (line 208) | async def test_reply_hooks(self) -> None: method test_print_hooks (line 528) | async def test_print_hooks(self) -> None: method test_observe_hooks (line 561) | async def test_observe_hooks(self) -> None: method asyncTearDown (line 778) | async def asyncTearDown(self) -> None: FILE: tests/mcp_sse_client_test.py function tool_1 (line 15) | async def tool_1(arg1: str, arg2: list[int]) -> str: function setup_server (line 27) | def setup_server() -> None: class SseMCPClientTest (line 34) | class SseMCPClientTest(IsolatedAsyncioTestCase): method asyncTearDown (line 37) | async def asyncTearDown(self) -> None: method asyncSetUp (line 45) | async def asyncSetUp(self) -> None: method test_stateless_client (line 107) | async def test_stateless_client(self) -> None: method test_stateful_client (line 256) | async def test_stateful_client(self) -> None: FILE: tests/mcp_streamable_http_client_test.py function tool_1 (line 16) | async def tool_1(arg1: str, arg2: list[int]) -> str: function tool_2 (line 28) | async def tool_2() -> list: function setup_server (line 44) | def setup_server() -> None: class StreamableHttpMCPClientTest (line 54) | class StreamableHttpMCPClientTest(IsolatedAsyncioTestCase): method asyncTearDown (line 57) | async def asyncTearDown(self) -> None: method asyncSetUp (line 63) | async def asyncSetUp(self) -> None: method test_streamable_http_stateless_client (line 70) | async def test_streamable_http_stateless_client(self) -> None: method test_embedded_content (line 156) | async def test_embedded_content(self) -> None: FILE: tests/mem0_utils_test.py class OllamaMessageMock (line 20) | class OllamaMessageMock: method __init__ (line 23) | def __init__( class OllamaResponseMock (line 34) | class OllamaResponseMock: method __init__ (line 37) | def __init__( method get (line 53) | def get(self, key: str, default: Any | None = None) -> Any: method __contains__ (line 57) | def __contains__(self, key: str) -> bool: class TestAgentScopeLLMWithOllama (line 62) | class TestAgentScopeLLMWithOllama(IsolatedAsyncioTestCase): method test_agentscope_llm_parallel_calls_with_asyncio_gather (line 66) | def test_agentscope_llm_parallel_calls_with_asyncio_gather(self) -> None: method test_agentscope_llm_async_gather_in_async_context (line 146) | async def test_agentscope_llm_async_gather_in_async_context(self) -> N... FILE: tests/memory_compression_test.py class MockChatModel (line 14) | class MockChatModel(ChatModelBase): method __init__ (line 17) | def __init__( method __call__ (line 34) | async def __call__( class MockFormatter (line 69) | class MockFormatter(FormatterBase): method format (line 72) | async def format(self, msgs: list[Msg], **kwargs: Any) -> list[dict]: class MemoryCompressionTest (line 86) | class MemoryCompressionTest(IsolatedAsyncioTestCase): method test_no_compression_below_threshold (line 89) | async def test_no_compression_below_threshold(self) -> None: method test_compression_above_threshold (line 142) | async def test_compression_above_threshold(self) -> None: FILE: tests/memory_reme_test.py class TestReMeMemory (line 42) | class TestReMeMemory(IsolatedAsyncioTestCase): method setUp (line 45) | def setUp(self) -> None: method _create_memory_instance (line 71) | def _create_memory_instance(self) -> Any: method test_init_with_default_params (line 86) | async def test_init_with_default_params(self) -> None: method test_record_to_memory_success (line 99) | async def test_record_to_memory_success(self) -> None: method test_record_to_memory_app_not_started (line 194) | async def test_record_to_memory_app_not_started(self) -> None: method test_record_to_memory_error_handling (line 208) | async def test_record_to_memory_error_handling(self) -> None: method test_retrieve_from_memory_success (line 245) | async def test_retrieve_from_memory_success(self) -> None: method test_retrieve_from_memory_no_results (line 337) | async def test_retrieve_from_memory_no_results(self) -> None: method test_retrieve_from_memory_app_not_started (line 359) | async def test_retrieve_from_memory_app_not_started(self) -> None: method test_record_direct_method_success (line 372) | async def test_record_direct_method_success(self) -> None: method test_record_direct_with_single_message (line 431) | async def test_record_direct_with_single_message(self) -> None: method test_record_direct_with_empty_list (line 474) | async def test_record_direct_with_empty_list(self) -> None: method test_record_direct_filters_none_messages (line 485) | async def test_record_direct_filters_none_messages(self) -> None: method test_record_direct_app_not_started (line 552) | async def test_record_direct_app_not_started(self) -> None: method test_retrieve_direct_method_success (line 565) | async def test_retrieve_direct_method_success(self) -> None: method test_retrieve_direct_with_message_list (line 609) | async def test_retrieve_direct_with_message_list(self) -> None: method test_retrieve_direct_with_none_message (line 635) | async def test_retrieve_direct_with_none_message(self) -> None: method test_retrieve_direct_invalid_input (line 644) | async def test_retrieve_direct_invalid_input(self) -> None: method test_retrieve_direct_app_not_started (line 654) | async def test_retrieve_direct_app_not_started(self) -> None: method test_context_manager_usage (line 667) | async def test_context_manager_usage(self) -> None: method test_integration_record_and_retrieve (line 688) | async def test_integration_record_and_retrieve(self) -> None: FILE: tests/memory_test.py class ShortTermMemoryTest (line 17) | class ShortTermMemoryTest(IsolatedAsyncioTestCase): method asyncSetUp (line 29) | async def asyncSetUp(self) -> None: method _basic_tests (line 46) | async def _basic_tests(self) -> None: method _mark_tests (line 106) | async def _mark_tests(self) -> None: method _multi_tenant_tests (line 247) | async def _multi_tenant_tests(self) -> None: method _multi_session_tests (line 338) | async def _multi_session_tests(self) -> None: method _test_add_duplicated_msgs (line 429) | async def _test_add_duplicated_msgs(self) -> None: method _test_delete_nonexistent_msg (line 442) | async def _test_delete_nonexistent_msg(self) -> None: method _test_serialization (line 454) | async def _test_serialization(self) -> None: method asyncTearDown (line 495) | async def asyncTearDown(self) -> None: class InMemoryMemoryTest (line 503) | class InMemoryMemoryTest(ShortTermMemoryTest): method asyncSetUp (line 506) | async def asyncSetUp(self) -> None: method test_memory (line 511) | async def test_memory(self) -> None: method test_serialization (line 518) | async def test_serialization(self) -> None: class AsyncSQLAlchemyMemoryTest (line 604) | class AsyncSQLAlchemyMemoryTest(ShortTermMemoryTest): method asyncSetUp (line 607) | async def asyncSetUp(self) -> None: method test_memory (line 632) | async def test_memory(self) -> None: method asyncTearDown (line 642) | async def asyncTearDown(self) -> None: class RedisMemoryTest (line 648) | class RedisMemoryTest(ShortTermMemoryTest): method asyncSetUp (line 660) | async def asyncSetUp(self) -> None: method test_memory (line 691) | async def test_memory(self) -> None: method test_ttl (line 701) | async def test_ttl(self) -> None: class RedisMemoryTestWithBytes (line 724) | class RedisMemoryTestWithBytes(ShortTermMemoryTest): method asyncSetUp (line 736) | async def asyncSetUp(self) -> None: method test_memory (line 767) | async def test_memory(self) -> None: method test_ttl (line 776) | async def test_ttl(self) -> None: FILE: tests/model_anthropic_test.py class SampleModel (line 12) | class SampleModel(BaseModel): class AnthropicMessageMock (line 19) | class AnthropicMessageMock: method __init__ (line 22) | def __init__(self, content: list = None, usage: dict = None): method _create_usage_mock (line 26) | def _create_usage_mock(self, usage_data: dict) -> Mock: class AnthropicContentBlockMock (line 33) | class AnthropicContentBlockMock: method __init__ (line 36) | def __init__(self, block_type: str, **kwargs: Any) -> None: class AnthropicEventMock (line 42) | class AnthropicEventMock: method __init__ (line 45) | def __init__(self, event_type: str, **kwargs: Any) -> None: class TestAnthropicChatModel (line 51) | class TestAnthropicChatModel(IsolatedAsyncioTestCase): method test_init_default_params (line 54) | def test_init_default_params(self) -> None: method test_init_with_custom_params (line 68) | def test_init_with_custom_params(self) -> None: method test_call_with_regular_messages (line 91) | async def test_call_with_regular_messages(self) -> None: method test_call_with_system_message (line 130) | async def test_call_with_system_message(self) -> None: method test_call_with_thinking_enabled (line 166) | async def test_call_with_thinking_enabled(self) -> None: method test_call_with_tools_integration (line 213) | async def test_call_with_tools_integration(self) -> None: method test_streaming_response_processing (line 276) | async def test_streaming_response_processing(self) -> None: method test_generate_kwargs_integration (line 329) | async def test_generate_kwargs_integration(self) -> None: method test_call_with_structured_model_integration (line 358) | async def test_call_with_structured_model_integration(self) -> None: FILE: tests/model_dashscope_test.py class MessageMock (line 13) | class MessageMock(dict): method __init__ (line 17) | def __init__(self, data: dict[str, Any]): class SampleModel (line 23) | class SampleModel(BaseModel): class TestDashScopeChatModel (line 30) | class TestDashScopeChatModel(IsolatedAsyncioTestCase): method test_init_default_params (line 33) | def test_init_default_params(self) -> None: method test_init_with_enable_thinking_forces_stream (line 45) | def test_init_with_enable_thinking_forces_stream(self) -> None: method test_init_with_custom_params (line 58) | def test_init_with_custom_params(self) -> None: method test_call_with_regular_model (line 73) | async def test_call_with_regular_model(self) -> None: method test_call_with_tools_integration (line 100) | async def test_call_with_tools_integration(self) -> None: method test_call_with_enable_thinking_streaming (line 153) | async def test_call_with_enable_thinking_streaming(self) -> None: method test_call_with_structured_model_integration (line 190) | async def test_call_with_structured_model_integration(self) -> None: method test_streaming_response_processing (line 271) | async def test_streaming_response_processing(self) -> None: method test_tools_schema_validation_through_api (line 343) | def test_tools_schema_validation_through_api(self) -> None: method test_call_with_multimodal_model (line 385) | async def test_call_with_multimodal_model(self) -> None: method test_error_handling_scenarios (line 411) | async def test_error_handling_scenarios(self) -> None: method _create_mock_response (line 431) | def _create_mock_response(self, content: str) -> Mock: method _create_mock_response_with_tools (line 444) | def _create_mock_response_with_tools( method _create_mock_chunk (line 464) | def _create_mock_chunk( method _create_async_generator (line 486) | async def _create_async_generator(self, items: list) -> AsyncGenerator: FILE: tests/model_gemini_test.py class GeminiResponseMock (line 13) | class GeminiResponseMock: method __init__ (line 16) | def __init__( method _create_usage_mock (line 53) | def _create_usage_mock(self, usage_data: dict) -> Mock: class GeminiFunctionCallMock (line 60) | class GeminiFunctionCallMock: method __init__ (line 63) | def __init__(self, call_id: str, name: str, args: dict = None): class GeminiPartMock (line 69) | class GeminiPartMock: method __init__ (line 72) | def __init__(self, text: str = "", thought: bool = False): class GeminiCandidateMock (line 79) | class GeminiCandidateMock: method __init__ (line 82) | def __init__(self, parts: list = None): class SampleModel (line 87) | class SampleModel(BaseModel): class TestGeminiChatModel (line 94) | class TestGeminiChatModel(IsolatedAsyncioTestCase): method test_init_default_params (line 97) | def test_init_default_params(self) -> None: method test_init_with_custom_params (line 110) | def test_init_with_custom_params(self) -> None: method test_call_with_regular_model (line 131) | async def test_call_with_regular_model(self) -> None: method test_call_with_tools_integration (line 162) | async def test_call_with_tools_integration(self) -> None: method test_call_with_thinking_enabled (line 236) | async def test_call_with_thinking_enabled(self) -> None: method test_call_with_structured_model_integration (line 289) | async def test_call_with_structured_model_integration(self) -> None: method test_streaming_response_processing (line 329) | async def test_streaming_response_processing(self) -> None: method test_generate_kwargs_integration (line 363) | async def test_generate_kwargs_integration(self) -> None: method test_format_tools_with_nested_schema (line 391) | def test_format_tools_with_nested_schema(self) -> None: method _create_mock_response (line 451) | def _create_mock_response( method _create_mock_response_with_tools (line 463) | def _create_mock_response_with_tools( method _create_mock_response_with_thinking (line 477) | def _create_mock_response_with_thinking( method _create_mock_chunk (line 491) | def _create_mock_chunk( method _create_async_generator (line 510) | async def _create_async_generator(self, items: list) -> AsyncGenerator: FILE: tests/model_ollama_test.py class OllamaMessageMock (line 13) | class OllamaMessageMock: method __init__ (line 16) | def __init__( class OllamaFunctionMock (line 27) | class OllamaFunctionMock: method __init__ (line 30) | def __init__(self, name: str, arguments: dict = None): class OllamaToolCallMock (line 35) | class OllamaToolCallMock: method __init__ (line 38) | def __init__( class OllamaResponseMock (line 47) | class OllamaResponseMock: method __init__ (line 50) | def __init__( method get (line 62) | def get(self, key: str, default: Any = None) -> Any: method __contains__ (line 66) | def __contains__(self, key: str) -> bool: class SampleModel (line 71) | class SampleModel(BaseModel): class TestOllamaChatModel (line 78) | class TestOllamaChatModel(IsolatedAsyncioTestCase): method test_init_default_params (line 81) | def test_init_default_params(self) -> None: method test_init_with_custom_params (line 92) | def test_init_with_custom_params(self) -> None: method test_call_with_regular_model (line 115) | async def test_call_with_regular_model(self) -> None: method test_call_with_tools_integration (line 141) | async def test_call_with_tools_integration(self) -> None: method test_call_with_thinking_enabled (line 196) | async def test_call_with_thinking_enabled(self) -> None: method test_call_with_structured_model_integration (line 234) | async def test_call_with_structured_model_integration(self) -> None: method test_streaming_response_processing (line 263) | async def test_streaming_response_processing(self) -> None: method test_options_integration (line 291) | async def test_options_integration(self) -> None: method _create_mock_response (line 317) | def _create_mock_response( method _create_mock_response_with_message (line 331) | def _create_mock_response_with_message( method _create_mock_chunk (line 344) | def _create_mock_chunk( method _create_async_generator (line 366) | async def _create_async_generator(self, items: list) -> AsyncGenerator: FILE: tests/model_openai_test.py class SampleModel (line 12) | class SampleModel(BaseModel): class TestOpenAIChatModel (line 19) | class TestOpenAIChatModel(IsolatedAsyncioTestCase): method test_init_default_params (line 22) | def test_init_default_params(self) -> None: method test_init_with_custom_params (line 35) | def test_init_with_custom_params(self) -> None: method test_call_with_regular_model (line 59) | async def test_call_with_regular_model(self) -> None: method test_call_with_tools_integration (line 91) | async def test_call_with_tools_integration(self) -> None: method test_call_with_reasoning_effort (line 145) | async def test_call_with_reasoning_effort(self) -> None: method test_call_with_structured_model_integration (line 182) | async def test_call_with_structured_model_integration(self) -> None: method test_streaming_response_processing (line 212) | async def test_streaming_response_processing(self) -> None: method _create_mock_response (line 253) | def _create_mock_response( method _create_mock_response_with_tools (line 279) | def _create_mock_response_with_tools( method _create_mock_response_with_reasoning (line 297) | def _create_mock_response_with_reasoning( method _create_mock_response_with_structured_data (line 307) | def _create_mock_response_with_structured_data(self, data: dict) -> Mock: method test_streaming_response_with_none_delta (line 325) | async def test_streaming_response_with_none_delta(self) -> None: method _create_stream_mock (line 363) | def _create_stream_mock(self, chunks_data: list) -> Any: FILE: tests/pipeline_test.py class AddAgent (line 18) | class AddAgent(AgentBase): method __init__ (line 21) | def __init__(self, value: int) -> None: method reply (line 27) | async def reply(self, x: Msg | None) -> Msg | None: method observe (line 34) | async def observe(self, msg: Msg | list[Msg] | None) -> None: method handle_interrupt (line 37) | async def handle_interrupt( class StreamAgent (line 45) | class StreamAgent(AgentBase): method __init__ (line 48) | def __init__(self) -> None: method reply (line 53) | async def reply(self) -> Msg | None: method observe (line 78) | async def observe(self, msg: Msg | list[Msg] | None) -> None: method handle_interrupt (line 81) | async def handle_interrupt( class ErrorAgent (line 89) | class ErrorAgent(AgentBase): method __init__ (line 92) | def __init__(self, error_msg: str = "Test error") -> None: method reply (line 98) | async def reply(self) -> Msg | None: method observe (line 109) | async def observe(self, msg: Msg | list[Msg] | None) -> None: method handle_interrupt (line 112) | async def handle_interrupt( class MultAgent (line 120) | class MultAgent(AgentBase): method __init__ (line 123) | def __init__(self, value: int) -> None: method reply (line 129) | async def reply(self, x: Msg | None) -> Msg | None: method observe (line 136) | async def observe(self, msg: Msg | list[Msg] | None) -> None: method handle_interrupt (line 139) | async def handle_interrupt( class PipelineTest (line 147) | class PipelineTest(IsolatedAsyncioTestCase): method test_functional_sequential_pipeline (line 150) | async def test_functional_sequential_pipeline(self) -> None: method test_class_sequential_pipeline (line 169) | async def test_class_sequential_pipeline(self) -> None: method test_functional_sequential_pipeline_with_none_message (line 191) | async def test_functional_sequential_pipeline_with_none_message( method test_class_sequential_pipeline_with_none_message (line 207) | async def test_class_sequential_pipeline_with_none_message(self) -> None: method test_empty_agent_list (line 224) | async def test_empty_agent_list(self) -> None: method test_single_agent_pipeline (line 240) | async def test_single_agent_pipeline( method test_functional_fanout_pipeline_concurrent (line 267) | async def test_functional_fanout_pipeline_concurrent(self) -> None: method test_functional_fanout_pipeline_sequential (line 291) | async def test_functional_fanout_pipeline_sequential(self) -> None: method test_class_fanout_pipeline_concurrent (line 312) | async def test_class_fanout_pipeline_concurrent(self) -> None: method test_class_fanout_pipeline_sequential (line 327) | async def test_class_fanout_pipeline_sequential(self) -> None: method test_fanout_pipeline_empty_agents (line 343) | async def test_fanout_pipeline_empty_agents(self) -> None: method test_fanout_pipeline_with_none_message (line 360) | async def test_fanout_pipeline_with_none_message(self) -> None: method test_stream_printing_messages (line 379) | async def test_stream_printing_messages(self) -> None: method test_stream_printing_messages_with_error_after_print (line 411) | async def test_stream_printing_messages_with_error_after_print( FILE: tests/plan_test.py class PlanTest (line 12) | class PlanTest(IsolatedAsyncioTestCase): method asyncSetUp (line 15) | async def asyncSetUp(self) -> None: method test_plan_model (line 46) | async def test_plan_model(self) -> None: method test_plan_subtasks (line 119) | async def test_plan_subtasks(self) -> None: method test_serialization (line 277) | async def test_serialization(self) -> None: method test_hint_generator_all_states (line 614) | async def test_hint_generator_all_states(self) -> None: method test_error_paths (line 665) | async def test_error_paths(self) -> None: method test_edge_cases (line 717) | async def test_edge_cases(self) -> None: method test_recover_historical_plan_triggers_hook (line 786) | async def test_recover_historical_plan_triggers_hook(self) -> None: FILE: tests/rag_knowledge_test.py class TestTextEmbedding (line 19) | class TestTextEmbedding(EmbeddingModelBase): method __init__ (line 25) | def __init__(self) -> None: method __call__ (line 29) | async def __call__( class RAGKnowledgeTest (line 51) | class RAGKnowledgeTest(IsolatedAsyncioTestCase): method test_simple_knowledge (line 54) | async def test_simple_knowledge(self) -> None: FILE: tests/rag_reader_test.py class RAGReaderText (line 16) | class RAGReaderText(IsolatedAsyncioTestCase): method test_text_reader (line 19) | async def test_text_reader(self) -> None: method test_pdf_reader (line 81) | async def test_pdf_reader(self) -> None: method test_word_reader_with_images_and_tables (line 104) | async def test_word_reader_with_images_and_tables(self) -> None: method test_excel_reader_with_images_and_tables (line 155) | async def test_excel_reader_with_images_and_tables(self) -> None: method test_ppt_reader_with_images_and_tables (line 258) | async def test_ppt_reader_with_images_and_tables(self) -> None: method test_ppt_reader_with_json_table_format (line 325) | async def test_ppt_reader_with_json_table_format(self) -> None: method test_ppt_reader_without_image (line 367) | async def test_ppt_reader_without_image(self) -> None: method test_ppt_reader_merged_table (line 392) | async def test_ppt_reader_merged_table(self) -> None: method test_ppt_reader_without_slide_tags (line 433) | async def test_ppt_reader_without_slide_tags(self) -> None: FILE: tests/rag_store_test.py class RAGStoreTest (line 22) | class RAGStoreTest(IsolatedAsyncioTestCase): method asyncSetUp (line 25) | async def asyncSetUp(self) -> None: method test_qdrant_store (line 31) | async def test_qdrant_store(self) -> None: method test_milvus_lite_store (line 83) | async def test_milvus_lite_store(self) -> None: method test_oceanbase_store (line 138) | async def test_oceanbase_store(self) -> None: method test_alibabacloud_mysql_store (line 292) | async def test_alibabacloud_mysql_store(self) -> None: method test_mongodb_store (line 421) | async def test_mongodb_store(self) -> None: method asyncTearDown (line 593) | async def asyncTearDown(self) -> None: FILE: tests/react_agent_test.py class MyModel (line 16) | class MyModel(ChatModelBase): method __init__ (line 19) | def __init__(self) -> None: method __call__ (line 39) | async def __call__( function pre_reasoning_hook (line 56) | async def pre_reasoning_hook(self: ReActAgent, _kwargs: Any) -> None: function post_reasoning_hook (line 64) | async def post_reasoning_hook( function pre_acting_hook (line 76) | async def pre_acting_hook(self: ReActAgent, _kwargs: Any) -> None: function post_acting_hook (line 84) | async def post_acting_hook( class ReActAgentTest (line 96) | class ReActAgentTest(IsolatedAsyncioTestCase): method test_react_agent (line 99) | async def test_react_agent(self) -> None: FILE: tests/realtime_dashscope_test.py class TestDashScopeRealtimeModelParseAPIMessage (line 17) | class TestDashScopeRealtimeModelParseAPIMessage(IsolatedAsyncioTestCase): method setUp (line 20) | def setUp(self) -> None: method test_parse_session_created_event (line 28) | async def test_parse_session_created_event(self) -> None: method test_parse_response_created_event (line 45) | async def test_parse_response_created_event(self) -> None: method test_parse_response_done_event (line 64) | async def test_parse_response_done_event(self) -> None: method test_parse_response_audio_delta_event (line 92) | async def test_parse_response_audio_delta_event(self) -> None: method test_parse_response_audio_done_event (line 114) | async def test_parse_response_audio_done_event(self) -> None: method test_parse_response_audio_transcript_delta_event (line 132) | async def test_parse_response_audio_transcript_delta_event(self) -> None: method test_parse_response_audio_transcript_done_event (line 158) | async def test_parse_response_audio_transcript_done_event(self) -> None: method test_parse_input_audio_transcription_completed_event (line 179) | async def test_parse_input_audio_transcription_completed_event( method test_parse_input_audio_buffer_speech_started_event (line 203) | async def test_parse_input_audio_buffer_speech_started_event( method test_parse_input_audio_buffer_speech_stopped_event (line 222) | async def test_parse_input_audio_buffer_speech_stopped_event( method test_parse_error_event (line 241) | async def test_parse_error_event(self) -> None: class TestDashScopeRealtimeModelSend (line 263) | class TestDashScopeRealtimeModelSend(IsolatedAsyncioTestCase): method setUp (line 266) | def setUp(self) -> None: method test_send_audio_base64 (line 280) | async def test_send_audio_base64(self) -> None: method test_send_image_base64 (line 303) | async def test_send_image_base64(self) -> None: method test_send_image_url (line 326) | async def test_send_image_url(self) -> None: FILE: tests/realtime_event_test.py class TestServerEventsFromModelEvent (line 9) | class TestServerEventsFromModelEvent(IsolatedAsyncioTestCase): method setUp (line 12) | def setUp(self) -> None: method test_model_response_created_event (line 17) | async def test_model_response_created_event(self) -> None: method test_model_response_done_event (line 39) | async def test_model_response_done_event(self) -> None: method test_model_response_audio_delta_event (line 66) | async def test_model_response_audio_delta_event(self) -> None: method test_model_response_audio_done_event (line 94) | async def test_model_response_audio_done_event(self) -> None: method test_model_response_audio_transcript_delta_event (line 117) | async def test_model_response_audio_transcript_delta_event(self) -> None: method test_model_response_audio_transcript_done_event (line 141) | async def test_model_response_audio_transcript_done_event(self) -> None: method test_model_response_tool_use_delta_event (line 163) | async def test_model_response_tool_use_delta_event(self) -> None: method test_model_response_tool_use_done_event (line 195) | async def test_model_response_tool_use_done_event(self) -> None: method test_model_input_transcription_delta_event (line 227) | async def test_model_input_transcription_delta_event(self) -> None: method test_model_input_transcription_done_event (line 249) | async def test_model_input_transcription_done_event(self) -> None: method test_model_input_started_event (line 275) | async def test_model_input_started_event(self) -> None: method test_model_input_done_event (line 297) | async def test_model_input_done_event(self) -> None: method test_model_error_event (line 319) | async def test_model_error_event(self) -> None: class TestClientEventsFromJson (line 345) | class TestClientEventsFromJson(IsolatedAsyncioTestCase): method test_client_session_create_event (line 348) | async def test_client_session_create_event(self) -> None: method test_client_session_end_event (line 368) | async def test_client_session_end_event(self) -> None: method test_client_response_create_event (line 381) | async def test_client_response_create_event(self) -> None: method test_client_response_cancel_event (line 394) | async def test_client_response_cancel_event(self) -> None: method test_client_image_append_event (line 407) | async def test_client_image_append_event(self) -> None: method test_client_text_append_event (line 424) | async def test_client_text_append_event(self) -> None: method test_client_audio_append_event (line 439) | async def test_client_audio_append_event(self) -> None: method test_client_audio_commit_event (line 457) | async def test_client_audio_commit_event(self) -> None: method test_client_tool_result_event (line 470) | async def test_client_tool_result_event(self) -> None: method test_invalid_json_data_no_type (line 489) | async def test_invalid_json_data_no_type(self) -> None: method test_invalid_json_data_not_dict (line 500) | async def test_invalid_json_data_not_dict(self) -> None: method test_unknown_event_type (line 509) | async def test_unknown_event_type(self) -> None: FILE: tests/realtime_gemini_test.py class TestGeminiRealtimeModelParseAPIMessage (line 18) | class TestGeminiRealtimeModelParseAPIMessage(IsolatedAsyncioTestCase): method setUp (line 21) | def setUp(self) -> None: method test_parse_setup_complete_event (line 29) | async def test_parse_setup_complete_event(self) -> None: method test_parse_audio_delta_event (line 39) | async def test_parse_audio_delta_event(self) -> None: method test_parse_output_transcription_event (line 66) | async def test_parse_output_transcription_event(self) -> None: method test_parse_input_transcription_event (line 86) | async def test_parse_input_transcription_event(self) -> None: method test_parse_generation_complete_event (line 106) | async def test_parse_generation_complete_event(self) -> None: method test_parse_turn_complete_event (line 124) | async def test_parse_turn_complete_event(self) -> None: method test_parse_tool_call_event (line 142) | async def test_parse_tool_call_event(self) -> None: method test_parse_error_event (line 174) | async def test_parse_error_event(self) -> None: class TestGeminiRealtimeModelSend (line 195) | class TestGeminiRealtimeModelSend(IsolatedAsyncioTestCase): method setUp (line 198) | def setUp(self) -> None: method test_send_audio_base64 (line 211) | async def test_send_audio_base64(self) -> None: method test_send_image_base64 (line 235) | async def test_send_image_base64(self) -> None: method test_send_text (line 259) | async def test_send_text(self) -> None: method test_send_tool_result (line 277) | async def test_send_tool_result(self) -> None: FILE: tests/realtime_openai_test.py class TestOpenAIRealtimeModelParseAPIMessage (line 18) | class TestOpenAIRealtimeModelParseAPIMessage(IsolatedAsyncioTestCase): method setUp (line 21) | def setUp(self) -> None: method test_parse_session_created_event (line 29) | async def test_parse_session_created_event(self) -> None: method test_parse_response_created_event (line 46) | async def test_parse_response_created_event(self) -> None: method test_parse_response_done_event (line 64) | async def test_parse_response_done_event(self) -> None: method test_parse_response_audio_delta_event (line 90) | async def test_parse_response_audio_delta_event(self) -> None: method test_parse_response_audio_done_event (line 112) | async def test_parse_response_audio_done_event(self) -> None: method test_parse_response_audio_transcript_delta_event (line 130) | async def test_parse_response_audio_transcript_delta_event(self) -> None: method test_parse_response_audio_transcript_done_event (line 156) | async def test_parse_response_audio_transcript_done_event(self) -> None: method test_parse_function_call_arguments_delta_event (line 177) | async def test_parse_function_call_arguments_delta_event(self) -> None: method test_parse_function_call_arguments_done_event (line 202) | async def test_parse_function_call_arguments_done_event(self) -> None: method test_parse_input_audio_transcription_completed_event (line 235) | async def test_parse_input_audio_transcription_completed_event( method test_parse_input_audio_buffer_speech_started_event (line 259) | async def test_parse_input_audio_buffer_speech_started_event( method test_parse_input_audio_buffer_speech_stopped_event (line 278) | async def test_parse_input_audio_buffer_speech_stopped_event( method test_parse_error_event (line 297) | async def test_parse_error_event(self) -> None: class TestOpenAIRealtimeModelSend (line 319) | class TestOpenAIRealtimeModelSend(IsolatedAsyncioTestCase): method setUp (line 322) | def setUp(self) -> None: method test_send_audio_base64 (line 335) | async def test_send_audio_base64(self) -> None: method test_send_text (line 356) | async def test_send_text(self) -> None: method test_send_tool_result (line 378) | async def test_send_tool_result(self) -> None: method test_send_audio_url (line 402) | async def test_send_audio_url(self) -> None: FILE: tests/session_test.py class MyAgent (line 16) | class MyAgent(AgentBase): method __init__ (line 19) | def __init__(self) -> None: method reply (line 29) | async def reply(self, msg: Msg) -> None: method observe (line 32) | async def observe(self, msg: Msg) -> None: method handle_interrupt (line 36) | async def handle_interrupt( class SessionTest (line 43) | class SessionTest(IsolatedAsyncioTestCase): method asyncSetUp (line 46) | async def asyncSetUp(self) -> None: method test_session_base (line 52) | async def test_session_base(self) -> None: method asyncTearDown (line 96) | async def asyncTearDown(self) -> None: class RedisSessionTest (line 104) | class RedisSessionTest(IsolatedAsyncioTestCase): method asyncSetUp (line 107) | async def asyncSetUp(self) -> None: method test_redis_session_save_and_load (line 122) | async def test_redis_session_save_and_load(self) -> None: method asyncTearDown (line 157) | async def asyncTearDown(self) -> None: FILE: tests/token_anthropic_test.py class AnthropicTokenCounterTest (line 9) | class AnthropicTokenCounterTest(IsolatedAsyncioTestCase): method asyncSetUp (line 12) | async def asyncSetUp(self) -> None: method test_anthropic_token_counter (line 98) | async def test_anthropic_token_counter(self) -> None: FILE: tests/token_char_test.py class CharTokenCounterTest (line 6) | class CharTokenCounterTest(IsolatedAsyncioTestCase): method test_count_tokens (line 9) | async def test_count_tokens(self) -> None: FILE: tests/token_openai_test.py class OpenAITokenCounterTest (line 11) | class OpenAITokenCounterTest(IsolatedAsyncioTestCase): method asyncSetUp (line 14) | async def asyncSetUp(self) -> None: method test_openai_token_counter (line 142) | async def test_openai_token_counter(self) -> None: FILE: tests/tool_dashscope_test.py class TestDashScopeTextToImage (line 16) | class TestDashScopeTextToImage: method test_text_to_image_success_url_mode (line 19) | def test_text_to_image_success_url_mode(self) -> None: method test_text_to_image_success_base64_mode (line 54) | def test_text_to_image_success_base64_mode(self) -> None: method test_text_to_image_empty_results (line 94) | def test_text_to_image_empty_results(self) -> None: method test_text_to_image_none_results (line 110) | def test_text_to_image_none_results(self) -> None: method test_text_to_image_exception (line 129) | def test_text_to_image_exception(self) -> None: class TestDashScopeImageToText (line 149) | class TestDashScopeImageToText: method test_image_to_text_single_url_success (line 152) | def test_image_to_text_single_url_success(self) -> None: method test_image_to_text_multiple_urls_success (line 175) | def test_image_to_text_multiple_urls_success(self) -> None: method test_image_to_text_local_file_success (line 201) | def test_image_to_text_local_file_success(self) -> None: method test_image_to_text_invalid_local_path (line 232) | def test_image_to_text_invalid_local_path(self) -> None: method test_image_to_text_list_content_response (line 256) | def test_image_to_text_list_content_response(self) -> None: method test_image_to_text_none_content (line 279) | def test_image_to_text_none_content(self) -> None: method test_image_to_text_exception (line 300) | def test_image_to_text_exception(self) -> None: class TestDashScopeTextToAudio (line 322) | class TestDashScopeTextToAudio: method test_text_to_audio_success (line 325) | def test_text_to_audio_success(self) -> None: method test_text_to_audio_no_data (line 355) | def test_text_to_audio_no_data(self) -> None: method test_text_to_audio_api_exception (line 378) | def test_text_to_audio_api_exception(self) -> None: FILE: tests/tool_openai_test.py class TestOpenAITextToImage (line 20) | class TestOpenAITextToImage: method test_text_to_image_success_url_mode (line 23) | def test_text_to_image_success_url_mode(self) -> None: method test_text_to_image_success_base64_mode (line 60) | def test_text_to_image_success_base64_mode(self) -> None: method test_text_to_image_gpt_image_1_force_base64 (line 89) | def test_text_to_image_gpt_image_1_force_base64(self) -> None: method test_text_to_image_exception (line 118) | def test_text_to_image_exception(self) -> None: class TestOpenAIEditImage (line 139) | class TestOpenAIEditImage: method test_edit_image_success_url_input (line 142) | def test_edit_image_success_url_input(self) -> None: method test_edit_image_success_local_file (line 181) | def test_edit_image_success_local_file(self) -> None: method test_edit_image_exception (line 219) | def test_edit_image_exception(self) -> None: method test_edit_image_file_not_found (line 248) | def test_edit_image_file_not_found(self) -> None: class TestOpenAICreateImageVariation (line 270) | class TestOpenAICreateImageVariation: method test_create_variation_success_url_mode (line 273) | def test_create_variation_success_url_mode(self) -> None: method test_create_variation_success_base64_mode (line 314) | def test_create_variation_success_base64_mode(self) -> None: method test_create_variation_exception (line 346) | def test_create_variation_exception(self) -> None: class TestOpenAIImageToText (line 373) | class TestOpenAIImageToText: method test_image_to_text_single_url_success (line 376) | def test_image_to_text_single_url_success(self) -> None: method test_image_to_text_multiple_urls_success (line 408) | def test_image_to_text_multiple_urls_success(self) -> None: method test_image_to_text_exception (line 443) | def test_image_to_text_exception(self) -> None: class TestOpenAITextToAudio (line 477) | class TestOpenAITextToAudio: method test_text_to_audio_success (line 480) | def test_text_to_audio_success(self) -> None: method test_text_to_audio_different_format (line 508) | def test_text_to_audio_different_format(self) -> None: method test_text_to_audio_exception (line 539) | def test_text_to_audio_exception(self) -> None: class TestOpenAIAudioToText (line 562) | class TestOpenAIAudioToText: method test_audio_to_text_local_file_success (line 565) | def test_audio_to_text_local_file_success(self) -> None: method test_audio_to_text_url_success (line 601) | def test_audio_to_text_url_success(self) -> None: method test_audio_to_text_file_not_found (line 636) | def test_audio_to_text_file_not_found(self) -> None: method test_audio_to_text_api_exception (line 657) | def test_audio_to_text_api_exception(self) -> None: FILE: tests/tool_test.py class ToolTest (line 21) | class ToolTest(IsolatedAsyncioTestCase): method setUp (line 24) | def setUp(self) -> None: method test_execute_python_code (line 30) | async def test_execute_python_code(self) -> None: method test_execute_shell_command (line 98) | async def test_execute_shell_command(self) -> None: method test_view_text_file (line 155) | async def test_view_text_file(self) -> None: method test_write_text_file (line 223) | async def test_write_text_file(self) -> None: method test_insert_text_file (line 248) | async def test_insert_text_file(self) -> None: method tearDown (line 362) | def tearDown(self) -> None: FILE: tests/toolkit_basic_test.py function aenumerate (line 18) | async def aenumerate( function async_func (line 42) | async def async_func(raise_cancel: bool) -> ToolResponse: function sync_func (line 50) | def sync_func( class TestCls (line 75) | class TestCls: method sync_func (line 78) | def sync_func(self) -> ToolResponse: function async_generator_func (line 90) | async def async_generator_func( function async_func_return_async_generator (line 102) | async def async_func_return_async_generator( function async_func_return_sync_generator (line 109) | async def async_func_return_sync_generator() -> Generator[ function sync_generator_func (line 118) | def sync_generator_func() -> Generator[ToolResponse, None, None]: class StructuredModel (line 125) | class StructuredModel(BaseModel): class MyBaseModel1 (line 131) | class MyBaseModel1(BaseModel): class MyBaseModel2 (line 137) | class MyBaseModel2(BaseModel): class ExtendedModelReusingBaseModel (line 143) | class ExtendedModelReusingBaseModel(BaseModel): class ToolkitBasicTest (line 150) | class ToolkitBasicTest(IsolatedAsyncioTestCase): method asyncSetUp (line 153) | async def asyncSetUp(self) -> None: method test_duplicate_tool_registration (line 192) | async def test_duplicate_tool_registration(self) -> None: method test_basic_functionalities (line 335) | async def test_basic_functionalities(self) -> None: method test_extended_model_reusing_same_base_model (line 435) | async def test_extended_model_reusing_same_base_model(self) -> None: method test_detailed_arguments (line 523) | async def test_detailed_arguments(self) -> None: method _verify_async_generator_wo_interruption (line 605) | async def _verify_async_generator_wo_interruption( method test_async_func (line 618) | async def test_async_func(self) -> None: method test_register_async_generator_func (line 662) | async def test_register_async_generator_func(self) -> None: method test_register_async_func_return_async_generator (line 712) | async def test_register_async_func_return_async_generator(self) -> None: method test_register_async_func_return_sync_generator (line 762) | async def test_register_async_func_return_sync_generator(self) -> None: method test_register_sync_generator_func (line 775) | async def test_register_sync_generator_func(self) -> None: method test_create_tool_group (line 788) | async def test_create_tool_group(self) -> None: method test_postprocess_func (line 834) | async def test_postprocess_func(self) -> None: method test_async_postprocess_func (line 873) | async def test_async_postprocess_func(self) -> None: method test_register_with_valid_json_schema (line 912) | async def test_register_with_valid_json_schema(self) -> None: method test_register_with_invalid_json_schema (line 963) | async def test_register_with_invalid_json_schema(self) -> None: method test_register_with_custom_json_schema_without_overrides (line 983) | async def test_register_with_custom_json_schema_without_overrides( method test_register_with_json_schema_preset_kwargs_keep_other_required (line 1025) | async def test_register_with_json_schema_preset_kwargs_keep_other_requ... method test_partial_function (line 1061) | async def test_partial_function(self) -> None: method test_func_name_parameter (line 1127) | async def test_func_name_parameter(self) -> None: method asyncTearDown (line 1223) | async def asyncTearDown(self) -> None: FILE: tests/toolkit_meta_tool_test.py function tool_function_1 (line 10) | def tool_function_1() -> ToolResponse: function tool_function_2 (line 22) | def tool_function_2() -> ToolResponse: class ToolkitMetaToolTest (line 34) | class ToolkitMetaToolTest(IsolatedAsyncioTestCase): method asyncSetUp (line 37) | async def asyncSetUp(self) -> None: method test_meta_tool (line 90) | async def test_meta_tool(self) -> None: method asyncTearDown (line 274) | async def asyncTearDown(self) -> None: FILE: tests/toolkit_middleware_test.py function middleware_1 (line 10) | async def middleware_1( function middleware_2 (line 27) | async def middleware_2( function tool (line 44) | async def tool(a: str) -> ToolResponse: class ToolkitMiddlewareTest (line 60) | class ToolkitMiddlewareTest(IsolatedAsyncioTestCase): method asyncSetUp (line 63) | async def asyncSetUp(self) -> None: method test_toolkit_middleware (line 68) | async def test_toolkit_middleware(self) -> None: FILE: tests/tracing_converter_test.py class ConverterTest (line 17) | class ConverterTest(TestCase): method test_convert_text_block (line 20) | def test_convert_text_block(self) -> None: method test_convert_thinking_block (line 46) | def test_convert_thinking_block(self) -> None: method test_convert_tool_use_block (line 65) | def test_convert_tool_use_block(self) -> None: method test_convert_tool_result_block (line 98) | def test_convert_tool_result_block(self) -> None: method test_convert_image_block (line 185) | def test_convert_image_block(self) -> None: method test_convert_audio_block (line 265) | def test_convert_audio_block(self) -> None: method test_convert_video_block (line 340) | def test_convert_video_block(self) -> None: method test_convert_invalid_blocks (line 415) | def test_convert_invalid_blocks(self) -> None: FILE: tests/tracing_extractor_test.py class ExtractorTest (line 45) | class ExtractorTest(TestCase): method setUp (line 48) | def setUp(self) -> None: method test_get_common_attributes (line 65) | def test_get_common_attributes(self) -> None: method test_get_format_target (line 82) | def test_get_format_target(self) -> None: method test_get_provider_name (line 103) | def test_get_provider_name(self) -> None: method test_get_tool_definitions (line 131) | def test_get_tool_definitions(self) -> None: method test_get_llm_request_attributes (line 161) | def test_get_llm_request_attributes(self) -> None: method test_get_llm_response_attributes (line 199) | def test_get_llm_response_attributes(self) -> None: method test_get_agent_messages_single_msg (line 239) | def test_get_agent_messages_single_msg(self) -> None: method test_get_agent_messages_list_of_msgs (line 257) | def test_get_agent_messages_list_of_msgs(self) -> None: method test_get_agent_messages_empty_list (line 298) | def test_get_agent_messages_empty_list(self) -> None: method test_get_agent_request_attributes (line 303) | def test_get_agent_request_attributes(self) -> None: method test_get_agent_request_attributes_with_list (line 340) | def test_get_agent_request_attributes_with_list(self) -> None: method test_get_agent_response_attributes (line 380) | def test_get_agent_response_attributes(self) -> None: method test_get_agent_response_attributes_with_list (line 392) | def test_get_agent_response_attributes_with_list(self) -> None: method test_get_tool_request_attributes (line 411) | def test_get_tool_request_attributes(self) -> None: method test_get_tool_response_attributes (line 451) | def test_get_tool_response_attributes(self) -> None: method test_get_formatter_request_attributes (line 459) | def test_get_formatter_request_attributes(self) -> None: method test_get_formatter_response_attributes (line 481) | def test_get_formatter_response_attributes(self) -> None: method test_get_generic_function_request_attributes (line 492) | def test_get_generic_function_request_attributes(self) -> None: method test_get_embedding_request_attributes (line 527) | def test_get_embedding_request_attributes(self) -> None: FILE: tests/tracing_test.py class TracingTest (line 30) | class TracingTest(IsolatedAsyncioTestCase): method asyncSetUp (line 33) | async def asyncSetUp(self) -> None: method test_trace (line 37) | async def test_trace(self) -> None: method test_trace_llm (line 129) | async def test_trace_llm(self) -> None: method test_trace_reply (line 203) | async def test_trace_reply(self) -> None: method test_trace_format (line 241) | async def test_trace_format(self) -> None: method test_trace_toolkit (line 264) | async def test_trace_toolkit(self) -> None: method test_trace_embedding (line 355) | async def test_trace_embedding(self) -> None: method asyncTearDown (line 379) | async def asyncTearDown(self) -> None: FILE: tests/tracing_utils_test.py class ExampleEnum (line 15) | class ExampleEnum(enum.Enum): class ExampleDataClass (line 23) | class ExampleDataClass: class ExamplePydanticModel (line 30) | class ExamplePydanticModel(BaseModel): class UtilsTest (line 37) | class UtilsTest(TestCase): method test_to_serializable_primitive_types (line 40) | def test_to_serializable_primitive_types(self) -> None: method test_to_serializable_collections (line 58) | def test_to_serializable_collections(self) -> None: method test_to_serializable_dict (line 78) | def test_to_serializable_dict(self) -> None: method test_to_serializable_msg (line 92) | def test_to_serializable_msg(self) -> None: method test_to_serializable_pydantic_model (line 99) | def test_to_serializable_pydantic_model(self) -> None: method test_to_serializable_dataclass (line 110) | def test_to_serializable_dataclass(self) -> None: method test_to_serializable_datetime (line 117) | def test_to_serializable_datetime(self) -> None: method test_to_serializable_timedelta (line 134) | def test_to_serializable_timedelta(self) -> None: method test_to_serializable_enum (line 141) | def test_to_serializable_enum(self) -> None: method test_to_serializable_unknown_type (line 149) | def test_to_serializable_unknown_type(self) -> None: method test_to_serializable_nested_structures (line 162) | def test_to_serializable_nested_structures(self) -> None: method test_serialize_to_str_simple (line 175) | def test_serialize_to_str_simple(self) -> None: method test_serialize_to_str_list (line 193) | def test_serialize_to_str_list(self) -> None: method test_serialize_to_str_dict (line 203) | def test_serialize_to_str_dict(self) -> None: method test_serialize_to_str_non_serializable (line 211) | def test_serialize_to_str_non_serializable(self) -> None: method test_serialize_to_str_unicode (line 218) | def test_serialize_to_str_unicode(self) -> None: method test_serialize_to_str_complex_nested (line 223) | def test_serialize_to_str_complex_nested(self) -> None: FILE: tests/tts_dashscope_cosyvoice_test.py class DashScopeCosyVoiceTTSModelTest (line 17) | class DashScopeCosyVoiceTTSModelTest(IsolatedAsyncioTestCase): method setUp (line 20) | def setUp(self) -> None: method _create_mock_dashscope_modules (line 28) | def _create_mock_dashscope_modules(self) -> dict: method test_init (line 53) | def test_init(self) -> None: method test_synthesize_non_streaming (line 69) | async def test_synthesize_non_streaming(self) -> None: method test_synthesize_streaming (line 99) | async def test_synthesize_streaming(self) -> None: class DashScopeCosyVoiceRealtimeTTSModelTest (line 161) | class DashScopeCosyVoiceRealtimeTTSModelTest(IsolatedAsyncioTestCase): method setUp (line 164) | def setUp(self) -> None: method _create_mock_dashscope_modules (line 172) | def _create_mock_dashscope_modules(self) -> dict: method _create_mock_callback (line 197) | def _create_mock_callback(self) -> MagicMock: method test_init (line 207) | def test_init(self) -> None: method test_push_incremental_text (line 232) | async def test_push_incremental_text(self) -> None: method test_synthesize_non_streaming (line 289) | async def test_synthesize_non_streaming(self) -> None: method test_synthesize_streaming (line 336) | async def test_synthesize_streaming(self) -> None: FILE: tests/tts_dashscope_test.py class DashScopeRealtimeTTSModelTest (line 17) | class DashScopeRealtimeTTSModelTest(IsolatedAsyncioTestCase): method setUp (line 20) | def setUp(self) -> None: method _create_mock_tts_client (line 27) | def _create_mock_tts_client(self) -> Mock: method _create_mock_dashscope_modules (line 37) | def _create_mock_dashscope_modules(self) -> dict: method test_init (line 56) | def test_init(self) -> None: method test_push_incremental_text (line 74) | async def test_push_incremental_text(self) -> None: method test_synthesize_non_streaming (line 121) | async def test_synthesize_non_streaming(self) -> None: method test_synthesize_streaming (line 158) | async def test_synthesize_streaming(self) -> None: class DashScopeTTSModelTest (line 202) | class DashScopeTTSModelTest(IsolatedAsyncioTestCase): method setUp (line 205) | def setUp(self) -> None: method _create_mock_response_chunk (line 210) | def _create_mock_response_chunk(self, audio_data: str) -> Mock: method test_init (line 218) | def test_init(self) -> None: method test_synthesize_non_streaming (line 231) | async def test_synthesize_non_streaming(self) -> None: method test_synthesize_streaming (line 259) | async def test_synthesize_streaming(self) -> None: FILE: tests/tts_gemini_test.py class GeminiTTSModelTest (line 37) | class GeminiTTSModelTest(IsolatedAsyncioTestCase): method setUp (line 40) | def setUp(self) -> None: method _create_mock_response (line 51) | def _create_mock_response( method test_init (line 62) | def test_init(self) -> None: method test_synthesize_non_streaming (line 75) | async def test_synthesize_non_streaming(self) -> None: method test_synthesize_streaming (line 104) | async def test_synthesize_streaming(self) -> None: FILE: tests/tts_openai_test.py class OpenAITTSModelTest (line 20) | class OpenAITTSModelTest(IsolatedAsyncioTestCase): method setUp (line 23) | def setUp(self) -> None: method test_init (line 33) | def test_init(self) -> None: method test_synthesize_non_streaming (line 46) | async def test_synthesize_non_streaming(self) -> None: method test_synthesize_streaming (line 74) | async def test_synthesize_streaming(self) -> None: FILE: tests/tuner_test.py function correct_workflow_func (line 17) | async def correct_workflow_func( function correct_workflow_func_no_aux (line 29) | async def correct_workflow_func_no_aux( function incorrect_workflow_func_1 (line 40) | async def incorrect_workflow_func_1(task: Dict) -> WorkflowOutput: function incorrect_workflow_func_2 (line 47) | async def incorrect_workflow_func_2( function correct_judge_func (line 58) | async def correct_judge_func( function incorrect_judge_func_1 (line 70) | async def incorrect_judge_func_1( function incorrect_judge_func_2 (line 80) | async def incorrect_judge_func_2( class TestTunerFunctionType (line 89) | class TestTunerFunctionType(IsolatedAsyncioTestCase): method test_validate_workflow_type (line 92) | def test_validate_workflow_type(self) -> None: class TestDataset (line 114) | class TestDataset(IsolatedAsyncioTestCase): method test_preview (line 117) | async def test_preview(self) -> None: FILE: tests/user_input_test.py class UserInputTest (line 12) | class UserInputTest(IsolatedAsyncioTestCase): method test_user_terminal_input (line 16) | async def test_user_terminal_input(self, mock_input: MagicMock) -> None: