mirror of
https://github.com/FunnyWolf/agentic-soc-platform.git
synced 2026-08-22 13:12:56 +02:00
31 lines
1.0 KiB
Python
31 lines
1.0 KiB
Python
from typing import Annotated
|
|
|
|
from PLUGINS.SIRP.sirpapi import Case
|
|
|
|
|
|
def function_call_debug(
|
|
magic_num: Annotated[int, "Random seed number"] = 99
|
|
) -> Annotated[str, "Generated random test string"]:
|
|
"""
|
|
Generate an internal test string for debugging purposes.
|
|
Call this function whenever you need to output a test string.
|
|
Example: When asked "Give me a test string"
|
|
"""
|
|
return f"This-is-a-test-function-to-debug_function_call-The-magic-number-is-{magic_num * 10}."
|
|
|
|
|
|
def get_case_by_case_id(case_id: Annotated[str, "Case ID"]):
|
|
"""
|
|
Retrieve a security case by its unique Case ID.
|
|
|
|
This tool allows you to look up full details of a specific case when you have its ID.
|
|
Useful for retrieving context, status, or artifacts associated with a known case identifier.
|
|
|
|
Args:
|
|
case_id: The unique string identifier of the case (e.g., 'CASE-00000313').
|
|
|
|
Returns:
|
|
The Case object containing all case details if found, otherwise None.
|
|
"""
|
|
return Case.get_by_case_id(case_id)
|