Banking NLU agentic rutime
The runtime interface that provides tool calling using the backbone of Banking Classification Model through the API.
How to use the runtime
Using the runtime is very easy.
- Create the runtime object
- Call prompt method of runtime object
- Miracle happens
Not that simple actually
Examples
import asyncio
from agentic_runtime.mappers import mappers
from agentic_runtime.model.api import HTTPModelApi
from agentic_runtime.runtime.runtime import ToolCallingRuntime
from agentic_runtime.schemas.intent import TransferMoney
from agentic_runtime.tools.registry import ToolRegistry
model_api = HTTPModelApi(
api_key="your_api_key",
api_url="url_to_model", #not deploy to public yet
)
tool_registry = ToolRegistry()
runtime = ToolCallingRuntime(
api=model_api,
tool_registry=tool_registry,
mapper_registry=mappers.registry
)
@tool_registry.register(TransferMoney)
def my_tool(intent:TransferMoney, context):
print(f"Transferring {intent.amount} to {intent.receiver}")
async def test():
print("start")
await runtime.prompt("ကိုကိုကို ၈ထောင်လွှဲပါ")
print("end")
if __name__ == "__main__":
asyncio.run(test())
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file banking_agent_runtime-0.2.0.tar.gz.
File metadata
- Download URL: banking_agent_runtime-0.2.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9be5200176aa6449757eda549a5848668e53decee292ce817b6fb7d3b2ca5af5
|
|
| MD5 |
72dbf73bfd603323a38a20b77a0aa19e
|
|
| BLAKE2b-256 |
60d7968501b30bbc57d1efb8721c9f98e1baeab9f69989082caaa4883b43d090
|
File details
Details for the file banking_agent_runtime-0.2.0-py3-none-any.whl.
File metadata
- Download URL: banking_agent_runtime-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
248cf10ef2c8b48e16058652c28138fb78f30db322d1926f950fc3cba14d537c
|
|
| MD5 |
a1138b6445519e30c91670f6f020ff1a
|
|
| BLAKE2b-256 |
5cc9da24fee83684efe8ae2532a83ed807cc82d29016e4a3b55285f81d6d873d
|