计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 260500128-1009.doi: 10.11896/jsjkx.260500128

• 计算机软件&体系结构 • 上一篇    下一篇

将file关键字引入接口描述语言IDL的初探

王献昌   

  1. 沈阳航空航天大学计算机学院 沈阳 110136
  • 出版日期:2026-11-16 发布日期:2026-11-16
  • 通讯作者: 王献昌(xcwang89@aliyun.com)
  • 基金资助:
    沈阳航空航天大学“全立体协同软件定义关健技术与作用”基金项目(120423002)

Preliminary Study on Introducing file Keyword into Interface Description Language

WANG Xianchang   

  1. College of Computer Science,Shenyang Airspace University,Shenyang 110136,China
  • Published:2026-11-16 Online:2026-11-16
  • About author:WANG Xianchang,born in 1966,Ph.D,professor,is a distinguished member of CCF(No.A2439D).His main research interests include knowledge representation and reasoning,formal system semantics,object middleware,and software-defined intelligent collaboration.
  • Supported by:
    This work was supported by the SAU’s “Full-Space Collaborative Software-Defined Key Technologies and Applications” Project(120423002).

摘要: 接口描述语言(IDL)经历了从面向对象的OMG IDL,到基于流式传输的gRPC IDL、面向Agent交互的JSON RPC IDL,华为鸿蒙IDL等多条技术路线的演进。与OMG IDL不同,gRPC将stream作为核心关键字引入其IDL体系中。随着大模型驱动的智能体交互日益依赖文件操作,当前主流IDL,无论是OMG IDL,gRPC IDL,JSON RPC IDL,还是鸿蒙IDL,均未将file纳入关键字或原生类型。因此在智能体大规模协作的今天,这一设计选择是否依然合理?通过梳理OMG IDL与gRPC在文件传输上的实现方式,发现两者均严格遵循“机制与策略分离”的原则,但当AI Agent需要频繁交换文件时,开发者不得不在应用层反复实现分块、校验和断点续传等逻辑。结合SWE-agent,AWCP,CBCL等前沿工作,认为重新审视file在IDL中的抽象地位恰逢其时。基于此,提出了基于引用传递语义的file原生类型方案,并探讨了该关键字在智能体协作场景中的潜在应用前景。

关键词: 智能体协作, 远程过程调用, 文件抽象, 接口描述语言, 引用传递

Abstract: Interface description languages(IDLs) have evolved along multiple technological trajectories,from object-oriented OMG IDL,to stream-based gRPC IDL and agent-oriented JSON RPC IDL,to Huawei’s HarmonyOS IDL.Unlike OMG IDL,gRPC introduces stream as a first-class keyword in its IDL system.As interactions of large-model-driven agents increasingly depend on file operations,none of the mainstream IDLs—whether OMG IDL,gRPC IDL,JSON RPC IDL,or HarmonyOS IDL—have incorporated file as a keyword or native type.This paper asks:in the era of large-scale agent collaboration,is this design choice still justified?By examining how OMG IDL and gRPC handle file transmission,this paper finds that both strictly adhere to the principle of “separation of mechanism and policy.” Yet when AI agents frequently exchange files,developers are forced to repeatedly re-implement chunking,check-summing,and resumable transfer logic at the application level.Drawing on recent work such as SWE-agent,AWCP,and CBCL,this paper argues that it is timely to revisit the abstraction status of `file` in IDLs.Based on this assessment,a native file type with pass-by-reference semantics is proposed,and the potential application prospects of this keyword in agent collaboration scenarios are discussed.

Key words: Agent collaboration, Remote procedure call(RPC), File abstraction, Interface definition language(IDL), Pass-by-refe-rence

中图分类号: 

  • TP316.4
[1] WANG X C.KIS-ORB ISL/IDL Manual and KIS-ORB Mapping Tools[R].Mission Center of State Key Laboratory of Complex Critical Software Environment,Shenyang Aerospace University.
[2] gRPC Docs.gRPC Documentation[EB/OL].https://grpc.io/docs/.
[3] ISO/IEC 19500-1, Information Technology Open Distributed Processing-Common Object Request Broker Architecture(CORBA) Specification-PART 1:CORBA INTERFACES[S].2012.
[4] JSON-RPC Working Group.JSON-RPC 2.0 Specification [S/OL].http://www.jsonrpcorg.
[5] HENNING M,VINOSKI S.Advanced C++CORBA Programming [M].Beijing:Tsinghua University Press,2000.
[6] Hua Wei IDL Usage Guideline [EB/OL].https://developer.hua-wei.com/consumer/en/doc/harmonyos-references-V3/idl-overview-0000001050762835-V3.
[7] LIU J.Files are all you need.LlamaIndex Blog[EB/OL] https://www.llamaindex.ai/blog/files-are-all-you-need.
[8] PISKALA D B.From “Everything is a file to “files Are All You need” How Unix Philosophy Informs the Design of Agentic AI Systems[J].arXiv:2601.11672,2026.
[9] NYSTROM R.Game Programming Patterns[M].Genever Benning,2014.
[10] gRPC-Gateway.gRPC-Gateway Documentation[EB/OL].ht-tps://grpc-ecosystem.github.io/grpc-gateway/.
[11] HOOD C.Agentic Grammar and Interface Specification(AGIS)[R].2026.
[12] O’CONNOR H.CBCL:Safe Self-Extensible Agent Communication[J].arXiv:2604.14512,2026.
[13] REN Y,DOMINGO D,ZHANG J,et al.Poly Store:Exploiting combined capabilities of heterogeneous storage[C]//Procee-dings of the 23rd USENIX Conference on File and Storage Technologies(FAST 25).USENIX Association,2025:539-555.
[14] YANG J,CARLOS E J,ALEXANDER W,et a..SWE-agent:Agent-Computer Interface Enable Software Engineering[C]//38th Advances in Neural Information Processing Systems.NeurIPS,2024:50528-50652.
[15] AgentsRoot Team.AgentsRoot:Adding Agent-Readable/Writeable Surface to Your Application[EB/OL].https://npmjs.com/package/agentsroot.
[16] CHEN J,UNNIBHAVI H,KOSHIBA A,et al.vFPIO:A Virtual I/O Abstraction for FPGA-accelerated I/O Devices[C]//Proceedings of the 2024 USENIX Annual Technical Conference(USENIX ATC’24).USENIX Association,2024:1167-1184.
[17] NIE X,GUO Z,CHEN Y,et al.AWCP:A Workspace Delegation Protocol for Deep-Engagement Collaboration across Remote Agents[J].arXiv:2602.20493,2026.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!