Messages — Eliot 1.14.0+0.g3584072 documentation
Sometimes you don’t want to generate actions. sometimes you just want an individual isolated message, the way traditional logging systems work. Here’s how to do that. If you already have an action object, you can log a message in that action’s context: If you don’t have a reference to an action, or you’re worried the function will sometimes be called outside the context of any action at all, you can use log_message: The main downside to using this function is that it’s a little slower, since it needs to handle the case where there is no action in context. © Copyright 2014-2018, ClusterHQ and Itamar Turner-Trauring Revision 3584072c.
Messages - Eliot 1.14.0+0.g3584072 documentation --> Docs >> Generating Logs >> Messages Edit on GitHub Messages ¶ Sometimes you don’t want to generate actions. sometimes you just want an individual isolated message, the way traditional logging systems work. Here’s how to do that. When you have an action ¶ If you already have an action object, you can log a message in that action’s context: from eliot import start_action class YourClass ( object ): def run ( self ): with start_action ( action_type = "myaction" ) as ctx : ctx . log ( message_type = "mymessage" , key = "abc" , key2 = 4 ) If you
Explore this link on the map →related reading
- Actions and Tasks - Eliot 1.14.0+0.g3584072 documentationeliot.readthedocs.io
- Why Eliot? - Eliot 1.14.0+0.g3584072 documentationeliot.readthedocs.io
- LLM Powered Autonomous Agents | Lil'Loglilianweng.github.io
- Cookbookcookbook.openai.com
- 12-factor-agents/content/factor-03-own-your-context-window.md at main · humanlayer/12-factor-agents · GitHubgithub.com
- Logging HOWTO — Python 3.14.6 documentationdocs.python.org
- Logfire Docs: Getting Started with Pydantic Logfirepydantic.dev
- On actionable and actually useful logs | Lanre Adelowolanre.wtf
- Logging Amazon Simple Queue Service API calls using AWS CloudTrail - Amazon Simple Queue Servicedocs.aws.amazon.com
- Arjun Virkarjunvirk.com
- A quick one: Testing log messages - Camille Fourniercamilletalk.com
- Prompt engineering | OpenAI APIplatform.openai.com