lithoblocks_client.py, configure an approved channel and operation ID, and store your key outside the model.
Register the tool
tools to your application’s create_agent call. Use the current langchain.agents.create_agent API rather than the older AgentExecutor tutorial pattern. See the official LangChain tool documentation for installation and provider setup. Pin the framework version in your application’s lockfile.
Verify without an autonomous run
Call the shared client directly with a short test message after approving a test send. Confirm Slack and the returned request ID before attaching it to an agent. Test missing configuration, an invalid key, a missing scope, and a timeout using your application’s test transport. The client returns sanitized JSON withok and either message coordinates or an error code. A transport failure is uncertain; it is not permission to choose another operation ID and resend.
Keep destination and template selection outside the model, and implement approval in your application. A tool description alone does not enforce authorization.
API send behavior · Agent workflow
