Get schema for a specific method
(self, method: str)
| 183 | ) |
| 184 | |
| 185 | def get_method_schema(self, method: str) -> MethodInfo: |
| 186 | """Get schema for a specific method""" |
| 187 | if not self.schema: |
| 188 | raise RuntimeError("Schema not loaded") |
| 189 | |
| 190 | if method not in self.schema.methods: |
| 191 | raise KeyError(f"Method '{method}' not found") |
| 192 | |
| 193 | return self.schema.methods[method] |
| 194 | |
| 195 | def list_methods(self) -> list[str]: |
| 196 | """List all available RPC methods""" |