MCPcopy
hub / github.com/openai/gpt-oss / _process

Method _process

gpt_oss/tools/tool.py:70–75  ·  view source on GitHub ↗

Override this method to provide the implementation of the tool.

(self, message: Message)

Source from the content-addressed store, hash-verified

68
69 @abstractmethod
70 async def _process(self, message: Message) -> AsyncIterator[Message]:
71 """Override this method to provide the implementation of the tool."""
72 if False: # This is to convince the type checker that this is an async generator.
73 yield # type: ignore[unreachable]
74 _ = message # Stifle "unused argument" warning.
75 raise NotImplementedError
76
77 @abstractmethod
78 def instruction(self) -> str:

Callers 1

processMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected