Hi everyone, I’m looking for examples of using th...
# marvin-ai
i
Hi everyone, I’m looking for examples of using the ControlFlow library with the Bedrock Claude model in Prefect. Any simple examples or guidance would be greatly appreciated! Thanks!
m
It somewhat depends on how you are authenticating with AWS but if your keys/tokens are setup correctly then the following would just work:
Copy code
from langchain_aws import ChatBedrock
cf.defaults.model = ChatBedrock(
    model_id=MODEL_NAME,
    model_kwargs=dict(temperature=0),
)
If it doesn't then have a look at the
langchain_aws
documentation for
ChatBedrock
as that is where the configuration happens. ControlFlow then simply accepts "any LangChain LLM class that supports chat-based APIs and tool calling" LangChain docs